RE: [exim] Order of Execution in System Filter

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Eli
Date:  
À: 'Marc Perkel', 'Exim Mailing List'
CC: 
Sujet: 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.

Eli.