procmail
[Top] [All Lists]

Re: Removing all headers

2002-05-02 11:26:21
Is it possible using procmail/formail to remove *all* headers before saving
a message to a file?

Indeed.  Take a look through the procmailrc man page - there are
probably more useful flags than you realise.  The 'b' flag, in
particular, says to deliver the body of the email.

The two requirements here are that first, the headers should not be
included in the file, and that new stuff shouldn't be appended to the
file, but any new stuff should simply overwrite what was there
previously.

  :0b:
  * [...test for informaional email...]
  | cat >statusfile

might be the kind of thing you are looking for.

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>