diff options
| author | bwarsaw | 2000-10-03 21:23:11 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-10-03 21:23:11 +0000 |
| commit | aa6d9907a66ed003079beddf53eb32b8ccbe1b22 (patch) | |
| tree | 2887a0652482014df2be0eeaf8fba1ba02c6db59 | |
| parent | 06395bf773a88982d83f261d66314e28164a4acc (diff) | |
| download | mailman-aa6d9907a66ed003079beddf53eb32b8ccbe1b22.tar.gz mailman-aa6d9907a66ed003079beddf53eb32b8ccbe1b22.tar.zst mailman-aa6d9907a66ed003079beddf53eb32b8ccbe1b22.zip | |
| -rw-r--r-- | Mailman/Archiver/pipermail.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Mailman/Archiver/pipermail.py b/Mailman/Archiver/pipermail.py index cccf3e94d..0268edfca 100644 --- a/Mailman/Archiver/pipermail.py +++ b/Mailman/Archiver/pipermail.py @@ -182,7 +182,16 @@ class Article: if self.author == "": self.author = self.email - # Save the 'In-Reply-To:' and 'References:' lines + # Save the In-Reply-To:, References:, and Message-ID: lines + # + # TBD: The original code does some munging on these fields, which + # shouldn't be necessary, but changing this may break code. For + # safety, I save the original headers on different attributes for use + # in writing the plain text periodic flat files. + self._in_reply_to = message.getheader('in-reply-to') + self._references = message.getheader('references') + self._message_id = message.getheader('message-id') + i_r_t = message.getheader('In-Reply-To') if i_r_t is None: self.in_reply_to = '' @@ -213,7 +222,7 @@ class Article: self.datestr = str(message['Date']) date = message.getdate_tz('Date') else: - self.datestr = 'None' + self.datestr = '' date = None if date is not None: date, tzoffset = date[:9], date[-1] or 0 |
