g_run_cmd "c:\app\test.exe $FILE$"
Run the script on all incoming/outgoing messages. The command line $FILE$ will be replaced with the path of the filename. There is a related queue file containing additional information (envelope, from, to etc) if needed (replace .itm with .idx to read the related file).
This is ideal where you wish to store messages in a database or in some other way externally process all messages.