[Mimedefang] filtering words from the subject line
Steffen Kaiser
skmimedefang at smail.inf.fh-bonn-rhein-sieg.de
Tue Jan 16 03:13:19 EST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon, 15 Jan 2007, dick at nagual.nl 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-----
More information about the MIMEDefang
mailing list