On 9/10/2020 4:52 PM, Mark Sapiro wrote:
> On 9/10/20 12:13 PM, Dennis Putnam wrote:
>>> From:\s.*no-reply
>>>
>> Thanks again for the reply. Unfortunately that doesn't work either.
> Try this in header_filter_rules
>
> ^from:\s*(<?no-reply|.*<no-reply)@
>
> These are case insensitive. The 'From:\s.*no-reply' pattern is too
> liberal. It will for example match
>
> Subject: a message from: someone with a no-reply address
>
> You need the initial ^ to ensure you're matching the From: header and
> not just any header with 'from: ' in it. My suggestion will match things
> like:
>
> From: no-re...@example.com
> From: <no-re...@example.com>
> From: Jane Doe <no-re...@example.com>
>
> and it won't match
>
> From: juno-re...@example.com
> From: no-reply...@example.com
>
>
Thanks. So far it is looking good but I made one small change:

^from:\s*(<?no-reply|.*<no-reply|.*<noreply)@

I hope I did it right.

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
    https://mail.python.org/archives/list/mailman-users@python.org/

Reply via email to