I now run Mailman 3.3.1, installed from pip. Is there now any way to prevent Mailman from forwarding the contents of the held message when notifying moderators of held messages?
There is not now any configuration setting for this.
I suspected that.
In my case these messages often are spam messages and if the entire contents are forwarded it triggers spam handling in the recipient address(es) which over time risks classifying all moderation emails as spam or even classifying the list domain or server as a spam source.
Even my own outgoing filter classifies it as spam, which I will fix.
So if you can recognize them as spam, why are you delivering them to to list in the first place?
Sorry, I see now that that sentence was mostly incorrect. The incoming spam filter (rspamd) does not detect it as spam, but the outgoing filter does (sometimes) as the moderation mail changes to the incoming mail increases the spam points slightly. In those cases the mailman rules trigger in place of the spam filter, e.g. only members may post. Probably bad training of the adaptive filter so that part of the problem will iron itself out over time. What is more problematic is that mail hosts like Hotmail/Microsoft have a more heavy handed approach to spam filtering. Currently this problem is very limited in my case as grey-listing, IP-blocks and filtering catches most spam but I'd still prefer to receive just a moderation mail with just the subject line, sender and size of the message instead of a full quote as that normally is enough to moderate our lists.
You can submit an issue at <https://gitlab.com/mailman/mailman/-/issues>.
I'll do that later this week or next week. Thank you for your very useful reply!
Cheers // David