email confirm command throws AssertionError on confirm_then_moderate of unsubscription.
eml_confirm.py
does not take into account an unsubscription_policy
of confirm_then_moderate
. The code assumes that confirm_then_moderate
must be for a subscription and asserts member is None which is not true for an unsubscription.
Feb 25 12:59:33 2019 (11755) Uncaught runner exception: <Member: Mark <webmaster
@grizz.org> on mm3_test1@grizz.org as MemberRole.member>
Feb 25 12:59:33 2019 (11755) Traceback (most recent call last):
File "/opt/mailman/mm/venv/lib/python3.5/site-packages/mailman-3.2.1-py3.5.egg/mailman/core/runner.py", line 173, in _one_iteration
self._process_one_file(msg, msgdata)
File "/opt/mailman/mm/venv/lib/python3.5/site-packages/mailman-3.2.1-py3.5.egg/mailman/core/runner.py", line 266, in _process_one_file
keepqueued = self._dispose(mlist, msg, msgdata)
File "/opt/mailman/mm/venv/lib/python3.5/site-packages/mailman-3.2.1-py3.5.egg/mailman/runners/command.py", line 208, in _dispose
mlist, msg, msgdata, parts, results)
File "/opt/mailman/mm/venv/lib/python3.5/site-packages/mailman-3.2.1-py3.5.egg/mailman/commands/eml_confirm.py", line 64, in process
assert member is None, member
AssertionError: <Member: Mark <webmaster@grizz.org> on mm3_test1@grizz.org as MemberRole.member>
Feb 25 12:59:33 2019 (11755) SHUNTING: 1551128373.309417+8181a0d819c4115025d37f07a5f5272ebe720f97