Regex Help For Procmail

Glen Barber glen.j.barber at gmail.com
Sun Sep 5 21:32:16 UTC 2010


On 9/5/10 12:33 PM, Drew Tomlinson wrote:
> No, still not matching.  Basically, why doesn't this header:
> 
> From: "Famous Smoke Shop" <Announce at email.famous-smoke.com>
> 
> Match this procmail recipe:
> 
> :0
> * ^From:.*famous-smoke.com>$

Hmm.. I just noticed this - I don't think you need the trailing bracket (>).

What about this:

	* ^From:.*famous-smoke\.com$

Note that I also escaped the period before 'com'.

-- 
Glen Barber


More information about the freebsd-questions mailing list