On Wed, May 18, 2005 at 03:50:44PM +0200, Claus Atzenbeck wrote:
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?
You might be reinventing the wheel. Have you tried the "frm" program
that's probably on your machine? It can show old, new, unread, etc.,
easily.
6:01pm [~/Mail] 664[1]> frm -vtn procmail
Folder contains the following messages:
1: Ruud H.G. van Tol Re: counting recipients
2: Jostein Berntsen Re: SHIFT
3: Bart Schaefer Re: SHIFT
4: Claus Atzenbeck filter read mails
--
dman
____________________________________________________________
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