A policy can supply those details to the program to be run, the only problem is it calls the program for EVERY msg.
You can programatically escape early in the script or run it after filtering (FWIW) but it is still a significant overhead.
Otherwise, you can parse the message using something like:
[quote]
for /f "delims=<> tokens=2" %%F in ('findstr /B "From:" *.cnm') do echo Mail is from %%F
[/quote]
to get the address to pass as a parameter to blat or such.
Does the "Send [binary|text] file to originator" rule action not do what you want?
<p>A policy can supply those details to the program to be run, the only problem is it calls the program for EVERY msg.</p><p>You can programatically escape early in the script or run it after filtering (FWIW) but it is still a significant overhead.</p><p>&nbsp;</p><p>Otherwise, you can parse the message using something like:</p><p>[quote]</p><p>for /f "delims=&lt;&gt; tokens=2" %%F in ('findstr /B "From:" *.cnm') do echo Mail is from %%F</p><p>[/quote] </p><p>&nbsp;to get the address to pass as a parameter to blat or such.</p>
Does the "Send [binary|text] file to originator" rule action not do what you want?