On 08/24/2015 12:23 AM, Ulf Dunkel wrote:
> 
> I now have set these settings:
> 
> Privacy Options > Subscription rules > Sender filters:
> - default_member_moderation: Yes (was already set)
> - member_moderation_action: Discard (was: Hold)
> - member_moderation_notice:
> "Sorry. This is a moderated mailing list. You don't have write access here."
> (without quotation marks)


The above is only used if member_moderation_action is Reject.


> Privacy Options > Subscription rules > Spam filters:
> - header_filter_rules:
> Spam Filter Regexp:
> "From: Ulf Dunkel <dun...@calamus.net>" (without quotation marks) *)
> Action: Hold
> 
> *) I firstly had to check which exact header phrase was used from my
> email client.


For the regexp, I would use

^From:.*dun...@calamus.net

The ^ ensures that you will match an actual From: header and not just
'from:' anywhere in the headers, and then just look for your email
address anywhere in that line. That way, it is not sensitive to how your
MUA formats it. Also, since the action is Hold and you want to discard
the rest, a false positive is not a problem as you can just discard the
held message.

-- 
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to