On 22 Apr, Holger Wahlen wrote:
| Don Hammond wrote:
| > The f flag tells procmail specifically that the program is not
| > delivering the message and to continue processing the rcfile.
|
| ... with the original message - or its header or body, if you use the
| "h" or "b" flag, respectively - replaced by the output of the pipe.
|
| For instance:
|
| > :0
| > * condition identifies spam
| > {
| > :0 fh:
| > | gzip -c >>SPAM.headers.gz
| >
| > :0:
| > | gzip -c >>SPAM.gz
| > }
|
| Procmail doesn't see any output from the first pipe because of the
| redirection, so the original message header is replaced by an empty
| one for further processing, and only the message body gets saved in
| SPAM.gz.
And of course you're right. It was a bad off-the-cuff example, rather
than something I use, thrown out without thinking carefully enough or
testing. And obviously compounded by my own incomplete understanding.
My apologies, and thanks to Holger for catching it and taking the time
to point it out.
Don Hammond
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail