procmail
[Top] [All Lists]

Re: What have I done now?

2003-12-15 12:44:25
Thanks guys, that did it. I don't remember having the parens in there
earlier, but I'm getting old or something.

Klaus.

If the syntax follows regex's, and this

* ^X-BOB*
 
grabs Bs

shouldn't

* ^X-BOB.*

that be the syntax? or is it "greedy" like perl

I guess a more proper syntax would also include the colon

* ^X-BOB:.*

but I don't think this matters.


On Mon, 2003-12-15 at 13:09, Klaus Johannes Rusch wrote:
Nick wrote:

I figure at the end of the day and several dozen emails to the list, I
should have this working.

I have this in the /etc/procmailrc and I thought it worked previously
(yesterday)

# Check Special X-OED Header
:0
* ^X-BOB*
SWITCHRC=$HOME/.procmailrc

# Check Special X-BOB header
:0
* ^X-BOB    (no asterisk since you want to match headers starting with
X-BOB, not with X-BO followed by an arbitrary number of Bs)
{
    SWITCHRC=$HOME/.procmailrc
}

--
Klaus Johannes Rusch
KlausRusch(_at_)atmedia(_dot_)net
http://www.atmedia.net/KlausRusch/
-- 
Nick (Nix) Gray
Senior Systems Engineer
Bruzenak Inc.
(512) 331-7998

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>