1998-12-22-15:49:41 UG:
I get a lot of mailing list mail, which procmail diligently moves to the
correct folder. The rules I'm using look like:
:0
* ^(to|cc): .*\/(quotes-plus(_at_)onelist(_dot_)com|(.*metastock|
*anncora(_at_)mindspring(_dot_)com)|.*realtrader|fasttrack(_at_)(_dot_)*)
|formail -i "X-MailingList: invest" -i "Reply-To: $MATCH,$FROM" -ds
invest.spool
Warning: You need locking for that (or delivery to any folder type except
Maildir). Add a second ":" to the first line, so it reads ":0 :". Turn on
detail logging to see what it's doing, with something like
LOGFILE=$HOME/.procmail-log
VERBOSE=on
at the top of your .procmailrc. You can comment the lines out when you're not
testing (that log will grow _fast_).
My question is, how can I filter out the mails which have a very high
quote percentage to a different folder; possibly /dev/null, but *ONLY*
if they are going to a list?
My first reaction is to try something like:
:0
* ^(to|cc): .*\/(quotes-plus(_at_)onelist(_dot_)com|(.*metastock|
*anncora(_at_)mindspring(_dot_)com)|.*realtrader|fasttrack(_at_)(_dot_)*)
{
:0
* pct ?? XXXXXXX
/dev/null
:0
|formail -i "X-MailingList: invest" -i "Reply-To: $MATCH,$FROM" -ds
invest.spool
}
That looks exactly right to me, though I've not done anything that complex.
Certainly the rules-inside-block structure is right for this job.
-Bennett