procmail
[Top] [All Lists]

Re: MATCH problem

2003-01-19 00:36:54
At 20:05 2003-01-18 -0500, fleet(_at_)teachout(_dot_)org did say:
* From:[        ].*\/\(_at_)(_dot_)*[^\>]
gets me the domains properly as @whatever

* Message-Id:[        ].*\/\(_at_)(_dot_)*[^\>]
gets me the domains properly as @whatever

[^\>] is a curious expression in your messageid extraction. Do you actually know what it does? '\>' is itself a character class expression. '>' is a specific character. You _should_ be stopping on dots, which separate domains and hosts...

:0
* From:[        ].*\/\(_at_)(_dot_)*[^\>]
* $MATCH ?? Message-Id:[        ].*\/\(_at_)(_dot_)*[^\>]
foundit

BTW, you should preceed both of those regexp's with ^ to ensure they are _headers_. Also, testing or not, if you're outputting to a file, you should specify the lockfile flag.

I'm surprised it supposedly works for ANY of them - you're checking $MATCH (the domain from the From: line) to see if it in turn contains:

        Message-Id:[    ].*\/\(_at_)(_dot_)*[^\>]

Is there some reason you believe that the DOMAIN from From: will contain "Message-Id:" for instance? Do you not see the glaring problem?

Extract each value in separate recipes, then compare them in a third.

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


_______________________________________________
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>