On 3/16/21 9:17 AM, Duane Raymond wrote:
Hi,
Unlike in mm2, I'm finding in mm3 that is not obvious when non-member is trying to post to the list when their subject line also has a header-filter match. All it lists is that the posting has matched a header rule (which isn't quite accurate as it is a non-member) and even when it matches a header rule it doesn't say which one (which is a noted issues in the file mailman/chains/headers.py).
This is because in the chain of rules being tested for the post, the header matching rules are tested before non-member moderation.
Anyone else noticed the same and have a solution?
The relevant list setting is:: Message Acceptance > Default action to take when a non-member posts to the list: Hold for moderation
Should I be editing mailman/chains/headers.py or perhaps another python file in that firstory to make the hold reason more explicit? It is actually two problems I wish to solve:
- Show when the message is held because it is a posting by a non-member (or a moderated member, etc)
For this one, member moderation holds come before header matches, so I think your issue is only for non-members. If you want that check to come first reorder these lines <https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/chains/builtin.py#L54-57> so the non-member moderation check comes before header matching.
- Show what specific header filter has caused the message to be held so I know why and/or can debug the regex to be more/less specific.
You've seen the code and the comments in mailman/chains/headers.py. We would welcome a merge request to implement this.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan