In a line like this:

>>cc "| env SENDER='$SENDER' /usr/local/tmda/bin/tmda-filter"

the "" are the only quotes processed by maildrop. As they are double quotes
(assuming same interpetation as bash / php / perl etc.) they allow variable
interpolation. The '' surrounding sender are ignored by maildrop, and when
the line appears to the shell, the value is already in place of the quotes.
My reason for including the quotes is the similar to Gordons for escaping
(forgot that part - thanks!) - to protect against embedded spaces or empty
values getting confusing the end of the intended value...

Consider if:
SENDER="bob smith"

without the quotes, smith would cause a syntax error.

m/



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to