procmail
[Top] [All Lists]

Re: passing variables from shell to procmail

2005-10-17 06:13:43
* Ruud H.G. van Tol <rvtol(_at_)isolution(_dot_)nl> :
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".

That's it!  Thanks mate!

-- 
Troy Piggins
Compiled from src: vim 6.4; mutt 1.5.10i; postfix 2.2.4;
                   slrn 0.9.8.1/rt (score_color patch)
RedHat 9 rpms    : kernel 2.4.20-31.9; procmail 3.22

____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>