procmail
[Top] [All Lists]

Re: X-Loop question

1998-12-29 07:25:46
Martin Schulze writes:
Tim wrote:
What is wrong with the recipe below? does the @ in the
X-Loop section need to be escaped because it is a special 
character?

No, but the "." is a procmail extended regular expression token; you should
escape it with a backslash like so (in the seventh line of your recipe):

   * !^X-Loop: 01006(_at_)mot\(_dot_)com

But the `.' should match a real dot as well, or not?

Regards,

     Joey

Without the backslash it will also match other domains such as
"motocom.com".  Of course, even with the backslash it would still
match "mot.com.net", so you really need a $ to ensure a match against
the entire domain name.

Mike

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