enaiman Check the message filtering options of the mail clients you looked at, some can run an application as a filter option. The FiltaQuilla Thunderbird extension adds new message filter options. Run or Launch a file, Save Message as File (use with Move Later option if moving messages from InBox), run javascript, etc. http://mesquilla.com/extensions/filtaquilla/ It has a filter option to run a file with command line params - Subject, Sender, Date, etc, but header only info, apparently there is an issue with mozilla core code not supporting streaming the message. http://mesquilla.com/forum/filtaquilla/h...ess-body-of-email-with-externa) http://mesquilla.com/forum/filtaquilla/how-to-get-message-body/ http://mesquilla.com/forum/filtaquilla/run-file/ You can check a filter option to save the message as an eml file in the folder of your choice, the file is named with the subject line (duplicates have subject line with added number) You could then read the message from the script instance using something like @TempDir & "\MyMsgFolder\" & $CmdLine[X] & ".eml" delete the file, then parse the message to remove the header. example InBox filter: check sender field, run script with subject,sender and date strings, save message to eml file Run File: thunderbird-runtest.exe,@SUBJECT@,@AUTHOR@,@DATE@ Save Message as File: "your message folder" #include <Array.au3>
Local $sMsg = FileRead(@TempDir & "\MyMsgFolder\" & $CmdLine[1] & ".eml")
FileDelete(@TempDir & "\MyMsgFolder\" & $CmdLine[1] & ".eml")
Local $aCmd = $CmdLine
Local $aArray = StringSplit($sMsg, @CRLF, 3)
_ArrayConcatenate($aCmd, $aArray)
_ArrayDisplay($aCmd)