Pages: 1
Getting a certain part from the subject line

I am receiving mails with the subject

[GEO] Pocket query : ThisOne

With "ThisOne" being variable. I can filter the message, but want to run an external program with "ThisOne" as a parameter.

Is there a macro-way to extract that last bit from the subject line and pass it on??? I tried some regex macro's but without luck.

Can be done:

Create a filter that exports the message fr om template to file, set the file as plain text and take care that the file has .cmd as extentsion, something like C:\Test\RunThis.cmd
Set for the file to be overwritten every tme.
Set the template to this:

MyProgram %RegExpMatch='%Subject'

Wh ere MyProgram is the program you want to run.
As second action for the filter you set the action Run external action and you point that to C:\Test\RunThis.cmd or whatever you decide to name the file you export.

Good luck.
I'm just a user of The Bat! I don't work for Ritlabs.
Thanks Roelof,

Knowing where I went wrong I found a maybe even easier way in executing:

c:\Programmas\xxx\xxx\download.exe %SETPATTREGEXP="[a-zA-Z0-9]*$"%REGEXPMATCH="%Subject"

Since it's always the last full word...

Best regards, Peter
Pages: 1