Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Sep 2010 21:59:10 +0100
From:      Frank Shute <frank@shute.org.uk>
To:        Drew Tomlinson <drew@mykitchentable.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Regex Help For Procmail
Message-ID:  <20100905205910.GA82375@orange.esperance-linux.co.uk>
In-Reply-To: <4C83C65B.6060508@mykitchentable.net>
References:  <4C814262.5060504@mykitchentable.net> <4C814634.1000003@gmail.com> <4C8164C7.9000107@mykitchentable.net> <4C83C65B.6060508@mykitchentable.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 05, 2010 at 09:33:31AM -0700, Drew Tomlinson wrote:
>
[snip]
> 
> No, still not matching.  Basically, why doesn't this header:
> 
> From: "Famous Smoke Shop" <Announce@email.famous-smoke.com>
> 
> Match this procmail recipe:
> 
> :0
> * ^From:.*famous-smoke.com>$
> "${HOME}/Maildir/.Shopping/Famous Smoke/Email/"
> 
> From my procmail log:
> 
> procmail: No match on "^From:.*famous-smoke.com>$"
> 
> Thanks,
> 
> Drew

Drew, try this:

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

I think it's not catching it because the period isn't backslash
escaped. Also don't bother catching the end of line as any whitespace
there will screw up your re.


Regards,

-- 

 Frank

 Contact info: http://www.shute.org.uk/misc/contact.html





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100905205910.GA82375>