Tuesday, February 19, 2013

Run script when receive message

Ever wanted to execute command/script/application when receive certain email? Not for all messages but only from specific sender or message with some subject or maybe in specific time range? With MSH Traffic Policy it is easier than you think.
Run Executable action is one of many actions which can be invoked based on multiple conditions.
Run command only for certain messages
Executable path is an absolute path to the command which will be invoked. Arguments are optional. Wait for finish options means that when selected application will work synchronously and processing of the message will be stopped till command ends.
Wait for finish can be used in scenario where some application generate file and this file should be attached to the message.