procmail
[Top] [All Lists]

Re: Nesting and feed (f) option

2002-10-04 15:38:23
Is the "f" needed when nesting in the following recipe? I cant figure out
if nesting negates the need for "f", or if the output for the second action
is even affected by the first action and requires an "f":

I don't recall the f flag being called a 'feed' option before.  It
doesn't do what I believe you think it does!  The *filter* flag changes
the content of the mail that procmail is processing.  It changes the
content of the mail (or the mail header in this case) to be whatever is
sent to stdout by the shell command given.  In your case,

      :0hif:
      | echo $MATCH >> $USERDIR/blacklist

all the output of echo is redirected to a file and the shell command has
nothing on stdout.  So you've just removed you mail's headers.

I think you don't want the f flag at all here, just 'hic' instead.

Hope that helps,
Martin
-- 
Martin McCarthy                 /</    http://procmail.non-prophet.org
    `Procmail Companion'        \>\
     Addison Wesley             /</                  PGP key available
_______________________________________________
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>