/ Cameron Simpson wrote on Sun 4.Nov'12 at 9:04:16 +1100 / > It also parses each message header just one on demand, so to test > hundreds of rules the parsing happens only once. And of course the rules > are parsed when I start mailfiler, not for each message. The other > upside of extracting the core address part is that you can do this: > > friends Friends from:(FRIENDS) > > which means match is the address in the From: header is in my "friends" > group, a set of addresses pulled in from a text db. Again parsed, just > at load time. So very fast. When I was using procmail I actually had > code that generated an enormous regexp with tens of addresses in it. > Ghastly! > > :0 > * > ^(to|cc):.*\<(cameron\.simpson@gmail\.com|cameron\.simpson@me\.com|cs@zip\.com\.au|... > * ^from:.*(huge regexp for "family" etc kilobytes long... > > My now obsolete .procmailrc for the spool-in folder is 1036401 bytes > long. Nasty!
I see your point. I've not looked into other filtering methods a great deal but I intend to. Mind you, I don't have many friends so my procmail rules are pretty basic ATM lol.