Using regular expressions


For a more accurate documentation on regular expressions, please refer to the Python 're' module at:


Spammers often use alternative characters to pass through filters. For example, @ for a, 1 for i, 0 for O... Therefore, the line:

            subject: v[1i][a@]gr[@a]
will allow to delete messages whose subject contains either: 'viagra' or 'v1agra' or 'V1@GR@' ...

Spammers often send their message to a list of users that belong to your domain. Use regular expressions for 'to:' and 'cc:'.