--On Dienstag, 13. Januar 2004 12:37 -0800 "Mitch \\(WebCob\\)" <[EMAIL PROTECTED]> wrote:
cc "| env SENDER='$SENDER' /usr/local/tmda/bin/tmda-filter"
I referred to the single quote which will prevent any variable expansion under sh. Test for yourself:
$ SENDER='$SENDER' env | grep SENDER
I am surprised expansion within single-quotes works with env...
I don't think "env" has anything to do with it. I'm pretty sure the $SENDER is expanded by maildrop before passing to the shell.
...which reminds me: never pass "$SENDER" to the shell without using escape() to get a safe version:
SH_SENDER=escape($SENDER) cc "| env SENDER='$SH_SENDER' /usr/local/tmda/bin/tmda-filter"
------------------------------------------------------- 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
