procmail
[Top] [All Lists]

Re: Procmail as reporting tool

2000-06-14 20:25:47
Dallman Ross <dman(_at_)netcom(_dot_)com> writes:
From: John Summerfield <summer(_at_)OS2(_dot_)ami(_dot_)com(_dot_)au>

Just wondered if it's possible to extract two lines such as
Subject and X-Mailer... I tried but didn't find a way of
doing it.

I'd use egrep;
egrep -i '^X-Mailer:|^Subject:' <mailbox

Why?

The formail solution offered works fine - as a later
post showed, you can add other headers to hit on easily.

Your method is liable to hit a false positive pretty
easily.  Example:
...

The formail solution will also correctly handle continued header lines.


Philip Guenther

_______________________________________________
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>