procmail
[Top] [All Lists]

Using $MATCH as an RE

1997-09-29 09:22:17
I wrote:
Your mail either came from a "spam haven" site (a site with a
serious and ongoing problem with spamming), came from a site
which offers free email accounts (which spammers unfortunately
:0B
* 1^1 ()\/Your +(e?mail|message|letter)( +[a-z,-]+( +[a-z,-]+)?)? +(is|came) 
+\
  from +a +\<?(spam|U[CB]E).*site
* $ -2^1 ^>.*$MATCH
{}
:0B
* $ $=^0
* 1^1 ()\/(free( +(e?mail|pop3?|drop.?box))? +accounts?.*(spam|U[CB]E)|\
         (spam|U[CB]E).*free( +(e?mail|pop3?|drop.?box))? +accounts?)
* $ -2^1 ^>.*$MATCH
{}

Well, besides "{}" should be "{ }", this has the problem that the
$MATCH has RE metacharacters in it. I seem to recall there was
some way to get those to be escaped in procmail. Anyone want to
remind me what it is?

Elijah
------
I /dev/null dupes, no need to CC list posts.  It is not my responsibility to
prove to you my mail is not spam, if mail to you bounces it will not be resent.

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