procmail
[Top] [All Lists]

Re: filter read mails

2005-05-18 10:19:07
Ruud H.G. van Tol:
Claus Atzenbeck:

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

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

  formail +1 -z -cx From: \
                -cx Subject: \
                -cX Status: \
                -s sed '1s/["\\]//g; 2s/^/-> /' \
                < /var/mail/claus \
                | grep -vx -B2 'Status:.*R.*' \
                | sed 's/^Status:.*//'

Please forget about that.

I have a formail/sed-combo that works better, but gives an empty line
for
each message with an R in the Status header.

With 'frm' I don't know how to get all unread, meaning All minus Read.
A message can have an 'O' for Old, with or without 'R'.

-- 
Grtz, Ruud


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