procmail
[Top] [All Lists]

filter read mails

2005-05-18 07:13:00
Hi all:

I have a little shell script that gives me a list of From: and Subject:
headers of my inbox file. The only line I use for this is:

formail +1 -z -cx From: -cx Subject: -s sed '1,1s/["\\]//g; 2,2s/^/-> /; $G' < 
/var/mail/claus

Works just fine.

However, I want to filter those mails and have only read mail appearing
in that list. The regexp would look like this:

        ^Status:.*R

How can I tell my above mentioned script to skip all mail that have a
"Status: R" line?

Any idea?

Claus

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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