
paul.sparks@us.idemia.com writes:
I'm setting up a new mailman 3 server and doing some test posts to
How did you get Mailman? git? PyPI? Via the OS distro's packaging?
a list. This server is intended only as an announcement list with limited members allowed to post. The resulting emails coming from the list do not include the List-Unsubscribe header although other "List-XXX" headers are included.
Based on rfc_2369.py in master as of a few minutes ago, you're also missing the "List-Subscribe" field.
Here is partial text of the email source as received from the list. I've tried viewing in Outlook.com, Thunderbird, and even captured the email text at postfix prior to sending
How are you capturing mail at postfix? What filters are configured in postfix?
ml.anonymous_list = True
This removes many fields. I don't think it should affect List-Subscribe and List-Unsubscribe, but it's hard to tell exactly what the code is doing because regexps are used to select fields and there are user configuration variables involved (see handlers/cleanse.py and handlers/cook_headers.py).
@implementer(IHandler) class RFC2369: """Add the RFC 2369 List-* headers."""
name = 'rfc-2369' description = _('Add the RFC 2369 List-* headers.') log.debug('RFC 2369 processing') def process(self, mlist, msg, msgdata): """See `IHandler`.""" process(mlist, msg, msgdata)
I'm not sure why the class gets invoked so many times (once per process, I guess). I would move the "log.debug" statement into the body of the function "process".
Any thoughts on why my debug calls are not showing in the logs?
The debug call in class RFC2369 is invoked at import time, I suppose. Methods or functions containing debug calls will be invoked when needed. I'm not sure why you expect them.
Steve
-- GNU Mailman consultant (installation, migration, customization) Sirius Open Source https://www.siriusopensource.com/ Software systems consulting in Europe, North America, and Japan