Munged a few words.

On 2/15/20 11:20 PM, Lindsay Haisley wrote:

> The only filter relevant to this issue is "(?i)Subject: .*[f...]".

The (?i) is irrelevant as the match always ignores case. Also, I don't
think that's what you want as it will match any Subject that contains
any of the letters f, u, c, k in either case. What is the action of this
rule?


On 2/16/20 10:17 AM, Lindsay Haisley wrote:
> 
> We want to discard _all_ non-member
> posts, and the problem is that these base64-addressed posts _are_ being
> held and not discarded. 


If generic_nonmember_action is Discard, non-member posts should be
discarded unless some prior test causes them to be held. Things which
could cause a hold are in order:

A match on a header_filter_rule with a Hold action.

One of the addresses returned by get_senders() is a moderated member and
member_moderation_action is Hold.

None of the addresses returned by get_senders() is a member and the
address returned by get_sender() matches an entry in hold_these_nonmembers

An address returned by get_senders() is an unmoderated member and the
list's emergency setting is Yes.

What is the reason given for the hold?

In the case of the message headers in your OP, get_senders() will return
a list like

['=?utf-8?b?ikfiaweiidxbymlhqg11bhrplm5ldc5waz4=?=',
'a...@multi.net.pk',
'=?utf-8?b?ikfiaweiidxbymlhqg11bhrplm5ldc5waz4=?=']

which are lowercased versions of respectively, the undecoded From:, The
unix from which I deduce from Return-Path: and the undecoded Reply-To:.
Both the original From: and Reply-To: decode to

"Abia" <a...@multi.net.pk>

msg.get_sender() returns '=?utf-8?b?ikfiaweiidxbymlhqg11bhrplm5ldc5waz4=?='

>From what you've said, that message whose decoded Subject: header is

Subject: I InstaF... Request is Pending

would match the header_filter_rule and be handled per that rule's
action, but then so would a message with

Subject: It's a fine day

You can decode these headers like

python
...
>>> from email.header import decode_header
>>> decode_header('=?utf-8?B?IkFiaWEiIDxBYmlhQG11bHRpLm5ldC5waz4=?=')
[('"Abia" <a...@multi.net.pk>', 'utf-8')]


-- 
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