Re: Regex Help For Procmail

2010-09-09 Thread Glen Barber
On 9/8/10 12:22 PM, Drew Tomlinson wrote: [snip] > # Deliver other email to folder > :0 > * ^From:.*famous-smoke\.com > "${HOME}/Maildir/.Shopping/Famous Smoke/Email/" > > Do you see anything I'm missing? > Drew, I'll give this one final shot. Try this: * ^From:(@.*famous-smoke\.com) "$HO

Re: Regex Help For Procmail

2010-09-08 Thread Drew Tomlinson
On 9/7/2010 5:50 PM, Robert Bonomi wrote: From owner-freebsd-questi...@freebsd.org Mon Sep 6 12:46:59 2010 Date: Mon, 06 Sep 2010 10:46:47 -0700 From: Drew Tomlinson To: per...@pluto.rain.com Cc: fr...@shute.org.uk, freebsd-questions@freebsd.org Subject: Re: Regex Help For Procmail On 9

Re: Regex Help For Procmail

2010-09-07 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org Tue Sep 7 14:24:56 2010 > Date: Tue, 07 Sep 2010 12:01:40 +0200 > From: Bernt Hansson > To: Drew Tomlinson > Cc: fr...@shute.org.uk, per...@pluto.rain.com, freebsd-questions@freebsd.org > Subject: Re: Regex Help For Procmail > >

Re: Regex Help For Procmail

2010-09-07 Thread Bernt Hansson
2010-09-06 19:46, Drew Tomlinson skrev: On 9/5/2010 4:02 PM, per...@pluto.rain.com wrote: Frank Shute wrote: Drew, try this: * ^From:.*famous-smoke\.com I think it's not catching it because the period isn't backslash escaped ... Unless there's some edge case that I'm not thinking of, adding

Re: Regex Help For Procmail

2010-09-06 Thread Peter Boosten
On 7-9-2010 3:51, Frank Shute wrote: > [snip] > I additionally don't like the look of your Maildir. It's quoted, you > should set MAILDIR in procmailrc, you should get rid of the space and > it should end in "new". Result: > > :0 > * ^From:.*famous-smoke\.com > .Shopping/Famous_Smoke/new I've act

Re: Regex Help For Procmail

2010-09-06 Thread Frank Shute
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" > > Match this procmail recipe: > > :0 > * ^From:.*famous-smoke.com>$ > "${HOME}/Maildir/.Shopping/Famous Smoke/Email/" > > F

Re: Regex Help For Procmail

2010-09-06 Thread Drew Tomlinson
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" Match this procmail recipe: :0 * ^From:.*famous-smoke.com>$ Hmm.. I just noticed this - I don't think you need the trailin

Re: Regex Help For Procmail

2010-09-06 Thread Drew Tomlinson
On 9/5/2010 4:02 PM, per...@pluto.rain.com wrote: Frank Shute wrote: Drew, try this: * ^From:.*famous-smoke\.com I think it's not catching it because the period isn't backslash escaped ... Unless there's some edge case that I'm not thinking of, adding a backslash to escape a period will ne

Re: Regex Help For Procmail

2010-09-05 Thread perryh
Frank Shute wrote: > Drew, try this: > > * ^From:.*famous-smoke\.com > > I think it's not catching it because the period isn't backslash > escaped ... Unless there's some edge case that I'm not thinking of, adding a backslash to escape a period will never convert a non-match into a match. An un

Re: Regex Help For Procmail

2010-09-05 Thread Glen Barber
On 9/5/10 12:33 PM, Drew Tomlinson wrote: > No, still not matching. Basically, why doesn't this header: > > From: "Famous Smoke Shop" > > 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

Re: Regex Help For Procmail

2010-09-05 Thread Frank Shute
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" > > Match this procmail recipe: > > :0 > * ^From:.*famous-smoke.com>$ > "${HOME}/Maildir/.Shopping/Famous Smoke/Email/" > > F

Re: Regex Help For Procmail

2010-09-05 Thread Drew Tomlinson
On 9/3/2010 2:12 PM, Drew Tomlinson wrote: Hi Glen, Thank you for your reply. On 9/3/2010 12:02 PM, Glen Barber wrote: Hi Drew, On 9/3/10 2:45 PM, Drew Tomlinson wrote: I use procmail for mail delivery and I'm trying to concoct the right regex to match From: headers and deliver to a fold

Re: Regex Help For Procmail

2010-09-03 Thread Drew Tomlinson
Hi Glen, Thank you for your reply. On 9/3/2010 12:02 PM, Glen Barber wrote: Hi Drew, On 9/3/10 2:45 PM, Drew Tomlinson wrote: I use procmail for mail delivery and I'm trying to concoct the right regex to match From: headers and deliver to a folder. However mail is sent from various addres

Re: Regex Help For Procmail

2010-09-03 Thread Glen Barber
Hi Drew, On 9/3/10 2:45 PM, Drew Tomlinson wrote: > I use procmail for mail delivery and I'm trying to concoct the right > regex to match From: headers and deliver to a folder. However mail is > sent from various addresses so I want to match all that end with > "famous-smoke.com>". Here's an ex

Regex Help For Procmail

2010-09-03 Thread Drew Tomlinson
I use procmail for mail delivery and I'm trying to concoct the right regex to match From: headers and deliver to a folder. However mail is sent from various addresses so I want to match all that end with "famous-smoke.com>". Here's an example of a header: From: "Famous Smoke Shop" Because