Pages: 1
RSS
REGEXPTEXT and "Run external program"
 
While filtering messages I need to run external program and pass e-mail which is extracted from e-mail body.

I have created filter to run external program and entered command line below, unfortunatelly macros always return empty string. What is wrong?

Run external command
MyProgram.exe "%REGEXPTEXT="(?is)(.*?)E-Mail (.*?)\n""

My e-mail body from which e-mail should be extracted

<text skipped>
E-Mail              = my@e-mail.com
<text skipped>

Thank You for help
Tomas
 
Try this:
MyProgram.exe "%REGEXPTEXT='(?is)\nE-Mail\s*\=\s(.*?)\n'"
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
 
Thanks, it works fine now!
 
In most cases, the regular expressions in The Bat! are ungreedy, so if you merely specify (.*?)E-Mail (.*?), it won't catch anything.
Pages: 1