procmail
[Top] [All Lists]

Re: Overwrite files and eliminate headers

1996-02-07 08:05:18
jzc(_at_)sibs(_dot_)com writes:
Hi,

I am using the following recipe to save an incoming message to
a file:

:0:
* ^Subject: saveme
savedfile

I have two questions:
1. The file: savedfile contains not only message text but also
the email headers, how can I eliminate all the headers so Procmail
only saves the message body.
2. When a new message arrives, the new message is appended to
the exiting savedfile. How can setup the recipe, so the new
message will overwrite the exiting savedfile.


# The 'b' flag indicates that procmail should only write out the body.
# See the procmailrc(5) manpage for details.
:0 b:
*       ^Subject: saveme
|cat >savedfile


Philip Guenther

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