cPanel & WHM Version 94 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!
This object is in archive! 

Ability to define which headers to use for matching

rbroberts shared this idea 8 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