procmail
[Top] [All Lists]

Re: Locking

2001-04-22 14:33:04
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.

/HW
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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