procmail
[Top] [All Lists]

Re: Procmail as reporting tool

2000-06-14 11:35:06
On Wed, Jun 14, 2000 at 12:12:18PM -0500, David W. Tamkin wrote:
John Poltorak asked,

| Can someone give me a recipe for creating a list of Subjects from a
| mailbox if this is possible?

You'd need a command, not a recipe, because a recipe would operate on only
one message at a time (or treat the entire mailbox as a single message).

 formail -zxSubject: -s < mailbox

If you want the output to preserve the word "Subject:" on each one,

 formail -XSubject: -s < mailbox

Many thanks for this, it's just what I was looking for.

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.

--
John


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