procmail
[Top] [All Lists]

Re: Special characters from recipe not escaped for the shell

2003-12-29 10:03:11
On Monday 29 December 2003 11:25 am, LuKreme wrote:
On 29 Dec 2003, at 08:15, Lee Hoffner wrote:
Hi, again. My recipe can break if there is an & in the subject line.
Here is a
sample log entry:

[Snip]

    TRAP= 'echo '`date`': HTML message from '$SPAMMER' with subject
'$SUB' was

This shell invocation is not escaped, so the '&' backgrounds the echo.

Can you elaborate, please? I don't understand: does 'echo ' need to be `echo 
instead? I tried that earlier and the recipe didn't work at all.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail