Troy Piggins schreef:
I need to pass a variable from within a bash script to procmail, but
can't seem to get it to work. The variable value is always null.
[...]
procmail example.procmailrc < $MESSAGE_NO
mv $MESSAGE_NO.new $MESSAGE_NO
procmail -m example.procmailrc < $MESSAGE_NO > $MESSAGE_NO.new
and use a "DEFAULT=|" in the first lines of your rc, to make procmail
deliver to stdout.
Alternatively, see man procmail, look for "parameter=value".
--
Grtz, Ruud
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail