procmail
[Top] [All Lists]

efficiency q: multiple addressees

2002-01-16 12:17:27
I'd like to spot mail with more than one (visible) addressee; that is to say,
either a comma in an addressee header or more than one addressee header. 
Which of these approaches is more efficient?  I'm not concerned about false
positives from commas in comments or from Resent- headers, nor about blind
carbon recipients (by the point where I'd use the recipe, any mail for sub-
scribed lists or where my address is not a listed addressee has already been
diverted):

 :0:
 * 2147483647^0 ^TO_.*,
 * -1^0
 * 1^0 ^TO_
 multiples

or

 :0:
 * ^TO_.*(,|(^.+)*^TO_)
 multiples

I'd suppose that the former is quicker when there is a comma in an addressee
header, but otherwise I can't guess.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>