procmail
[Top] [All Lists]

Re: recipe failure

2008-07-08 17:26:01
 Tue, 8 Jul 2008, Holger Wahlen wrote:

* Robert Holtzman wrote:

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.

Before I used "TO:." I used "TO_". This would always generate a lock failure with this list only. Some others would work with "TO_" and some would simply fail but with no lock failure.

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?

You're right, probably one change too many during the
discussion here.


--
Bob Holtzman
"If you think you're getting free lunch,
 check the price of the beer"
____________________________________________________________
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>