On Sat, 12 Jul 1997 07:16:18 -0500 (EST),
Jeff Davis <jeff(_at_)jehosophat(_dot_)com> wrote:
Is there a way to strip the From: and Subject: lines from incoming mail
and cat it to a file?
man formail
I assume you really mean "extract the Subject and From headers to a
separate file, then proceed as normally":
:0c:
| formail -XSubject: -XFrom: >>file
and not "strip away the Subject and From header from all messages,
then cat them to a file":
:0
| formail -ISubject: -IFrom: >>file
Of course, LOGABSTRACT-yes would already write more or less the same
information to the log for you. Perhaps you could instead do a simple
postprocessor for the log file to extract exactly the information you
want?
/* era */
--
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r. <http://www.iki.fi/~era/>
* Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>