procmail
[Top] [All Lists]

Re: Script for Testing?

2007-08-02 07:25:16
Scott Moseman wrote:

Instead of matching regular expressions against the email, can I send
either specific headers or the entire email to a script and have the
output of the script provide the match or no match results?

OUTPUT=`(formail -x"Header" | yourscript)`
will send the "Header" header to your script and store the output in the 
variable OUTPUT for further processing.

-- 
Klaus Johannes Rusch
KlausRusch(_at_)atmedia(_dot_)net
http://www.atmedia.net/KlausRusch/

____________________________________________________________
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>