procmail
[Top] [All Lists]

Re: X-Loop question

1998-12-29 05:00:47
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

# Auto reply testing for forged spam issue 12/18/98 CFS
:0BHD #grep  body and headers, D means case sensitivety
* .*(INTERNATIONAL DRIVER\'S LICENSE|UNIVERSITY DEGREE PROGRAMS).*$
{
  :0hc
  * !^FROM_DAEMON
  * !^X-Loop: 010006(_at_)mot(_dot_)com
  | (formail -rt -A "X-Loop: 010006(_at_)mot(_dot_)com" \
        -I "Precedence: junk" ; \
     cat $MAILDIR/forgeresponse.txt ) | $SENDMAIL $SENDMAILFLAGS -t

  :0:
  postmaster-spam-complaint
}

-- 
If you come from outside of Finland, you live in wrong country.
        -- motd of irc.funet.fi

Please always Cc to me when replying to me on the lists.

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