procmail
[Top] [All Lists]

Re: recipe failure

2008-07-08 12:39:22
* Robert Holtzman wrote:
I rather suspect that the second @ in each of those is supposed to be a 
dot.
If no, then try:

* ^TO:.(plug-discuss|plug-announce-admin)@lists\.plug\.phoenix\.az\.us

Educate me please. Why escape the dots?

Since an unescaped dot matches any character, the version with
lists.plug.phoenix.az.us would also match lists-plug.phoenix.az.us
(with a hyphen), for instance. Usually the probability for such false
positives is neglectible, but if you get into the habit of generally
escaping dots that are meant literally, you reduce it to zero.

procmail: No match on 
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?):(_dot_)plug-discuss(_at_)lists@plug.phoenix.az.us"

procmail: No match on 
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?):(_dot_)plug-discuss(_at_)lists@plug.phoenix.az.us"

Look at the number of colons: you'd have to have two in the "To" line
for a match. As Ruud said, ^TO is not simply "beginning of line -
letter T - letter O", but a macro that gets expanded into what you see
before the mail address in the log entries. This expansion already
contains a colon, so "^TO:" is almost certain to fail.

procmail: No match on 
"^List-ID:(_dot_)*plug-discuss(_at_)lists(_dot_)plug(_dot_)phoenix(_dot_)az(_dot_)us"

According to your original message, you're trying to match

  List-Id: Main PLUG discussion list <plug-discuss.lists.plug.phoenix.az.us>

with a dot between "discuss" and "lists". Apparently your recipe has
an "@" there, though - probably one change too many during the
discussion here?

/HW
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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