This object is in archive! 
Ability to define which headers to use for matching
Open Discussion
With procmail, I can define a macros like these:
LIST="^((X-)?(List)(-(id|post|help|unsubscribe|subscribe))?):.*"
FROM="^(From[ ]|(Old-|X-)?(Resent-)?(From|Reply-To|Sender)):.*"
and then use them like so
:0
* $ $LIST(glade-users.lists.ximian.com)
.linux.glade-users/
:0
* $ $FROM(billing@verizonwireless.com)
.misc/
Having just converted a large number of procmail rules to cpanel, I find I'm stuck with "any header contains" or else I have to define several rules to get the above effect. I would love to be able to define header matches like the above which would make my rule sets more specific and more compact which in turn makes them more accurate.
Replies have been locked on this page!