diff options
| author | bwarsaw | 2000-09-14 06:05:34 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-09-14 06:05:34 +0000 |
| commit | 65157676228ae59402c937ca7ee50b1aa18baf30 (patch) | |
| tree | 73f4c98356a35c5e79a508f994146b89b47f349e | |
| parent | 06ceefe6d72996ba78edb8508205fffb00efe985 (diff) | |
| download | mailman-65157676228ae59402c937ca7ee50b1aa18baf30.tar.gz mailman-65157676228ae59402c937ca7ee50b1aa18baf30.tar.zst mailman-65157676228ae59402c937ca7ee50b1aa18baf30.zip | |
| -rw-r--r-- | Mailman/Archiver/Archiver.py | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/Mailman/Archiver/Archiver.py b/Mailman/Archiver/Archiver.py index ff7907e27..9df6accd9 100644 --- a/Mailman/Archiver/Archiver.py +++ b/Mailman/Archiver/Archiver.py @@ -154,23 +154,15 @@ class Archiver: # def __archive_to_mbox(self, post): """Retain a text copy of the message in an mbox file.""" - if self.clobber_date: - olddate = post.getheader('date') - post['Date'] = time.ctime(time.time()) try: - try: - afn = self.ArchiveFileName() - mbox = self.__archive_file(afn) - mbox.AppendMessage(post) - mbox.fp.close() - except IOError, msg: - syslog('error', 'Archive file access failure:\n\t%s %s' % - (afn, msg)) - raise - finally: - if self.clobber_date: - # Resurrect original date setting. - post['Date'] = olddate + afn = self.ArchiveFileName() + mbox = self.__archive_file(afn) + mbox.AppendMessage(post) + mbox.fp.close() + except IOError, msg: + syslog('error', 'Archive file access failure:\n\t%s %s' % + (afn, msg)) + raise def ExternalArchive(self, ar, txt): d = Utils.SafeDict({'listname': self.internal_name()}) |
