procmail
[Top] [All Lists]

Re: I do not see where the error is... :-/

2009-01-05 18:47:05
* Michelle Konzack wrote:
The question is, WHY does it not match?

TDTP_LIST_IDS="(listmaster|owner|bounces|request)@(lists.|)tamay-dogan.net"
...
:0
* $ ^TO_(${TDTP_LIST_IDS})
...
and the E-Mail is:
...
To: 
de(_dot_)comp(_dot_)os(_dot_)xxxxxxxxxx(_dot_)hardware-owner(_at_)lists(_dot_)tamay-dogan(_dot_)net

Because you're trying to match just *part* of the address, but "^TO_" is
supposed to deal with an entire address:

| If the regular expression contains `^TO_' it will be substituted by
| 
`(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)',
| which should catch all destination specifications containing a specific 
address.

Your approach would work if the mail had

  To: owner(_at_)lists(_dot_)tamay-dogan(_dot_)net

or

  To: list owner <owner(_at_)lists(_dot_)tamay-dogan(_dot_)net>

But it has "(_dot_)(_dot_)(_dot_)hardware-owner(_at_)(_dot_)(_dot_)(_dot_)" 
instead, so the regexp doesn't match
(because of the "[^-a-zA-Z0-9_.]").

/HW

-- 
Holger Wahlen, Cologne, Germany
____________________________________________________________
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>