diff options
| author | bwarsaw | 2002-08-22 19:14:32 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-08-22 19:14:32 +0000 |
| commit | 412b51277236cf28bd0bc3ee14a8ac305c0347b7 (patch) | |
| tree | b6f074dd521508e68b3b9911ceeed71fb9808598 | |
| parent | 2f76c8bbc636cfcb4c9d2855080c63bcffa5ed74 (diff) | |
| download | mailman-412b51277236cf28bd0bc3ee14a8ac305c0347b7.tar.gz mailman-412b51277236cf28bd0bc3ee14a8ac305c0347b7.tar.zst mailman-412b51277236cf28bd0bc3ee14a8ac305c0347b7.zip | |
| -rw-r--r-- | Mailman/Archiver/pipermail.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Mailman/Archiver/pipermail.py b/Mailman/Archiver/pipermail.py index 2f1306e7a..25a027528 100644 --- a/Mailman/Archiver/pipermail.py +++ b/Mailman/Archiver/pipermail.py @@ -17,6 +17,7 @@ CACHESIZE = 100 # Number of slots in the cache from Mailman import Errors from Mailman.Mailbox import ArchiverMailbox +from Mailman.Logging.Syslog import syslog from Mailman.i18n import _ SPACE = ' ' @@ -542,12 +543,17 @@ class T: counter += 1 while 1: try: + pos = input.tell() m = mbox.next() except Errors.DiscardMessage: continue except email.Errors.MessageParseError: # Probably a missing terminating boundary continue + except Exception, e: + syslog('error', 'uncaught archiver exception at filepos: %s', + pos) + raise if not m: break msgid = m.get('message-id', 'n/a') |
