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
I *ALSO* have a rule which sets a variable "pct" to "XXX" where the
number of X's is the percentage ( / 10) of the mail which is quoted (vs
original content), ranging from 0 to 9 "X"'s.
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
}
But none of the examples show additional rules in the nested pieces. Is
this allowed? Is there a better way?
Thanks