Re: [Mimedefang] filtering words from the subject line

2007-01-16 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 15 Jan 2007, [EMAIL PROTECTED] wrote:


Can I find a MD rule somewhere on how to filter out a list of unwanted
words in the subject header from incoming E-mails?


See the list archive, why this is a bad idea.

If you insist in using it:

Add this conditional into the filter_begin() function:


if($Subject =~ m// ) {
return action_bounce("bad subject");
}

Put your regex between the slashes of  m//.

Bye,

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBRayJI+gJIbZtwg6XAQKDjAgAo9SUuL0w7QDDEb+aKmQ91NYr74oD7DI2
1KkDKmB8SqeQyeNFPyeYI6I1ePVNTBpGojgtOMCnZrQSUgn/fRPYcAkstn6E9zjB
d4A1tzFS/I2W/kqR4OGslc+gD7oB9sPulE5sjpaqpFkfc6siPZ/OYv3+Va60kwyV
i3mXjY4fePNF6z51ObcDs/JB8GEyR5ik3eu/rJ5kSuyerMns09yJpcH2DVUcZAyt
BAPazNPUhSj3RhNUa8FdPI3klmHyN5yndiJjeX0jXNK+ZWyxq4umP9XNKZFVmgZ0
oUPJqob1/Ej753f6NB9T/n7kzuU5q+5kjLGPQFOPVtCiA3yCzDOa1A==
=rsjC
-END PGP SIGNATURE-
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] filtering words from the subject line

2007-01-15 Thread Ben Kamen

[EMAIL PROTECTED] wrote:

Can I find a MD rule somewhere on how to filter out a list of unwanted
words in the subject header from incoming E-mails?

I have these words filtered now by Sieve, but I'd like to do this for all
users. So, doing it with MD seems a good option.

I would be very greatfull for an example.



Keyword filtering is a VERY dangerous thing.

We can't stress strongly enough how it can generate a LOT of false 
positives.


-Ben

--
Ben Kamen
=
Email: bkamen AT benjammin DOT net  Web: http://www.benjammin.net

There is no substitute for good manners, except, perhaps, fast
reflexes.
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang