[Mailman-Users] About Spam Filtering

METU E-List Admin listeyon at metu.edu.tr
Tue Feb 12 08:25:48 CET 2013


Thank you for your support. I have changed the regexp to

^X-Mailer: (?!Microsoft Outlook .*).*$

and I will watch for the next emails. I will also watch for the logs for 
a few days, then revert back to original file.

Thanks

On 02/12/2013 08:37 AM, Mark Sapiro wrote:
> METU E-List Admin wrote:
>> --------------------------------------------
>> $ bin/config_list -o - REGISTER | grep -A20 header_filter_rules
>> header_filter_rules = [('^X-Mailer: (?!Microsoft Outlook .*)$', 7,
>
> This regexp won't work. The negative lookahead does not advance the
> current position so your regexp says look for 'X-Mailer: ' at the
> beginning of the line not followed by 'Microsoft Outlook .*' but
> followed immediately by the end of the line, so it will only match a
> header like 'X-Mailer: ' not followed by anything.
>
> What you want is
>
> ^X-Mailer: (?!Microsoft Outlook .*).*$
>
> or just
>
> ^X-Mailer: (?!Microsoft Outlook .*)
>
> or maybe even just
>
> ^X-Mailer: (?!Microsoft Outlook )
>



More information about the Mailman-Users mailing list