diff options
| author | Barry Warsaw | 2016-11-13 22:03:40 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2016-11-13 22:03:40 -0500 |
| commit | c50b3ee558eabd00624b0efc7ad9324535df1709 (patch) | |
| tree | c6b90a107d00b20126c96a43215a1f0e27f44c31 /src/mailman/chains | |
| parent | 589c4c62d4fa0b79dd4e742c50cf79bd8d4558ca (diff) | |
| download | mailman-c50b3ee558eabd00624b0efc7ad9324535df1709.tar.gz mailman-c50b3ee558eabd00624b0efc7ad9324535df1709.tar.zst mailman-c50b3ee558eabd00624b0efc7ad9324535df1709.zip | |
Closes: #68
Messages sent to the list's moderators now include the actual recipient
addresses. Given by Tom Briles.
Diffstat (limited to 'src/mailman/chains')
| -rw-r--r-- | src/mailman/chains/hold.py | 2 | ||||
| -rw-r--r-- | src/mailman/chains/tests/test_hold.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/chains/hold.py b/src/mailman/chains/hold.py index b8c59358e..f111aee3c 100644 --- a/src/mailman/chains/hold.py +++ b/src/mailman/chains/hold.py @@ -246,7 +246,7 @@ also appear in the first line of the body of the reply.""")), nmsg.attach(text) nmsg.attach(MIMEMessage(msg)) nmsg.attach(MIMEMessage(dmsg)) - nmsg.send(mlist, tomoderators=True) + nmsg.send(mlist, to_moderators=True) # Log the held message. Log messages are not translated, so recast # the reasons in the English. with _.using('en'): diff --git a/src/mailman/chains/tests/test_hold.py b/src/mailman/chains/tests/test_hold.py index 677ce2f0f..13dd1b40e 100644 --- a/src/mailman/chains/tests/test_hold.py +++ b/src/mailman/chains/tests/test_hold.py @@ -135,8 +135,8 @@ A message body. # Issue #144 - UnicodeEncodeError in the hold chain. self._mlist.admin_immed_notify = True self._mlist.respond_to_post_requests = False - mod = self._user_manager.create_user('bart@example.com', 'Bart User') - address = set_preferred(mod) + bart = self._user_manager.create_user('bart@example.com', 'Bart User') + address = set_preferred(bart) self._mlist.subscribe(address, MemberRole.moderator) path = resource_filename('mailman.chains.tests', 'issue144.eml') with open(path, 'rb') as fp: |
