Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.
This object is in archive! 

Ability to define which headers to use for matching

rbroberts shared this idea 12 years ago
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.

Leave a Comment
 
Attach a file