Regex Help For Procmail

Drew Tomlinson drew at mykitchentable.net
Mon Sep 6 17:49:00 UTC 2010


  On 9/5/2010 2:32 PM, Glen Barber wrote:
> 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'.

I think I'd have to have the trailing bracket when specifying the "$" at 
the end.  However maybe the bracket is some special regex character and 
needs to be escaped?  I'm just going to remove the bracket and the $ and 
see what happens.  However I *would* like to understand.

Thanks for your help!

Drew

-- 
Like card tricks?

Visit The Alchemist's Warehouse to
learn card magic secrets for free!

http://alchemistswarehouse.com



More information about the freebsd-questions mailing list