procmail
[Top] [All Lists]

Re: Simple question (unless you're living with no sleep)

2003-09-07 12:46:04
On Sun, Sep 07, 2003 at 02:26:53PM -0500, Gerald V. Livingston II wrote:

On Sun, 07 Sep 2003 21:07:41 +0200 Dallman Ross <dman(_at_)nomotek(_dot_)com>
wrote:

* ^Delivered-To:(_dot_)*pngclassof83(_at_)yahoogroups\(_dot_)com

Actually, there are two differences.  You correctly got rid of
the "*" after "com" (thank you).  It does no good unless Gerald
sometimes gets mail from @yahoogroups.co or @yahoogroups.commmm in
addition to the instance with one "m".

You will want a lockfile, i.e., a second colon ending the first line
of the recipe.

Oh, regarding the combination of lockfiles and maildir folders,
I believe one does not need the lockfile with maildir (delivery
to folders) implementation.


If you look at some of the other headers that they mangle with extra info
you'll see why I'm leaving the "*" at the end. That WILL catch something
like "pngclassof83(_at_)yahoogroups(_dot_)com, 
someone(_at_)somewhere(_dot_)net" right?

Uh.  Wrong!

An asterisk is a regex standing for "zero or more of what came before."
What came before is an "m".  That is why I wrote that it will match on
any of

        yahoogroups.co
        yahoogroups.com
        yahoogroups.comm
        yahoogroups.commmmmmmmmmmmmmmmmm

(That is, zero or more instances of the letter "m".)
The rest of the line to the right is meaningless to
procmail.  Procmail matches, other than in some very
specific and planned cases, in a manner that is
"leftward-stingy."  Once it finds its match, it
scoots immediately to the next line with the message,
"Success!" without bothering to see wether, or what,
text to the right still exists.

-- 
dman

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