Author: Eli Date: To: 'Marc Perkel', 'Exim Mailing List' CC: Subject: RE: [exim] Order of Execution in System Filter
Marc wrote: > I'm trying to run this code in the systm filter where I save
> the message to a file and then run a program on it to add a header.
>
> unseen save /var/spool/spam/$message_id.test 777 headers add "X-Spamprobe:
> ${run {/etc/exim/scripts/spamprobe-test $message_id}{$value}{}}"
>
> But - it seems that the program is running first and the save happens later. > Is that what is supposed to happen?
Yes, and you get a cookie if you can figure out why...
I'll give you the answer :P ${...} is an expansion - it runs first, THEN
does the "unseen save" part.