On 1/20/21 12:07 PM, costavitor...@gmail.com wrote:
> After that, I receive DISCARD from chains/discard.py:45


OK. Everything is normal, but the message is being discarded. There are
many reasons why this might be the case. These include:

The poster's moderation action is discard.
The poster is a list member and the list's "Default action to take when
a member posts to the list" is discard.
The poster is not a list member and the list's "Default action to take
when a non-member posts to the list" is discard.
The poster is not a list member and is in the list's "Discard these
non-members"
The message matches a header filter with a discard action.

There should be an entry in Mailman's mailman.log saying

DISCARD: <message-id>

To find the reason, change the line at
<https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/chains/discard.py#L45>
from

        log.info('DISCARD: %s', msg.get('message-id', 'n/a'))

to

        log.info('DISCARD: %s, reason: %s',
                 msg.get('message-id', 'n/a')),
                 msgdata.get('moderation_reasons', 'n/a')
                )

-- 
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
_______________________________________________
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3

Security Policy: https://wiki.list.org/x/QIA9

Reply via email to