diff options
| author | Barry Warsaw | 2014-12-08 20:38:26 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2014-12-08 20:38:26 -0500 |
| commit | 3efe5c120ff28a15194bee07a6c4a484e3b99883 (patch) | |
| tree | 184d7c585ff4dc90c9a4c7fafbe7c1dc8ae45729 /src/mailman/model/bounce.py | |
| parent | 11ad91cffe9b584d070d7d663a28eab927a96674 (diff) | |
| parent | 36a33024b1837bcc14e4f3ab1cccad5d811ec9e2 (diff) | |
| download | mailman-3efe5c120ff28a15194bee07a6c4a484e3b99883.tar.gz mailman-3efe5c120ff28a15194bee07a6c4a484e3b99883.tar.zst mailman-3efe5c120ff28a15194bee07a6c4a484e3b99883.zip | |
Diffstat (limited to 'src/mailman/model/bounce.py')
| -rw-r--r-- | src/mailman/model/bounce.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mailman/model/bounce.py b/src/mailman/model/bounce.py index cd658052d..26ebbe0c6 100644 --- a/src/mailman/model/bounce.py +++ b/src/mailman/model/bounce.py @@ -57,7 +57,10 @@ class BounceEvent(Model): self.list_id = list_id self.email = email self.timestamp = now() - self.message_id = msg['message-id'] + msgid = msg['message-id'] + if isinstance(msgid, bytes): + msgid = msgid.decode('ascii') + self.message_id = msgid self.context = (BounceContext.normal if context is None else context) self.processed = False |
