diff options
| author | Mark Sapiro | 2017-05-24 22:25:11 -0700 |
|---|---|---|
| committer | Mark Sapiro | 2017-05-24 22:25:11 -0700 |
| commit | 3df8d5182b44148bbd4b43f5474cd67b2ca699f9 (patch) | |
| tree | ee6fa503f6ce4644e46fd7a8a8f7b3e9aec07f06 /src/mailman/app/moderator.py | |
| parent | 49158a23a7ef0b376ec86a6522700349fe9278fc (diff) | |
| download | mailman-3df8d5182b44148bbd4b43f5474cd67b2ca699f9.tar.gz mailman-3df8d5182b44148bbd4b43f5474cd67b2ca699f9.tar.zst mailman-3df8d5182b44148bbd4b43f5474cd67b2ca699f9.zip | |
Diffstat (limited to 'src/mailman/app/moderator.py')
| -rw-r--r-- | src/mailman/app/moderator.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman/app/moderator.py b/src/mailman/app/moderator.py index 03028cb85..0676cb4f5 100644 --- a/src/mailman/app/moderator.py +++ b/src/mailman/app/moderator.py @@ -79,7 +79,8 @@ def hold_message(mlist, msg, msgdata=None, reason=None): msgdata['_mod_message_id'] = message_id msgdata['_mod_listid'] = mlist.list_id msgdata['_mod_sender'] = msg.sender - msgdata['_mod_subject'] = msg.get('subject', _('(no subject)')) + # The subject can sometimes be a Header instance. Stringify it. + msgdata['_mod_subject'] = str(msg.get('subject', _('(no subject)'))) msgdata['_mod_reason'] = reason msgdata['_mod_hold_date'] = now().isoformat() # Now hold this request. We'll use the message_id as the key. |
