Gary Funck schreef:
# If more than 200 messages, trim the first 100.
#
NMSGS=`formail -X 'From ' -s < $SPAM_MBOX | wc -l`
Yes, that is more accurate than:
fgrep -cE '^From ' -- $SPAM_MBOX
* $ ? test $NMSGS -gt 200
XMSGS=`expr $NMSGS - 100`
Or in just-procmail:
:0
* $ $NMSGS ^ 0
* -200 ^ 0
{
:0
* $ $NMSGS ^ 0
* -100 ^ 0
{ XMSGS = "$=" }
}
--
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