diff options
| author | bwarsaw | 2001-07-25 05:16:55 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-07-25 05:16:55 +0000 |
| commit | 0532617cedbf671b2b7bd67c4c2defb3cd69bd4c (patch) | |
| tree | fc26a5c4575e470fba24d084d5803e0e020c2713 /cron | |
| parent | 300bc87a5c4b4e89ba68bdc42f18c29ffe59b4c8 (diff) | |
| download | mailman-0532617cedbf671b2b7bd67c4c2defb3cd69bd4c.tar.gz mailman-0532617cedbf671b2b7bd67c4c2defb3cd69bd4c.tar.zst mailman-0532617cedbf671b2b7bd67c4c2defb3cd69bd4c.zip | |
Diffstat (limited to 'cron')
| -rwxr-xr-x | cron/gate_news | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cron/gate_news b/cron/gate_news index 9010cef95..4cad891fc 100755 --- a/cron/gate_news +++ b/cron/gate_news @@ -46,6 +46,7 @@ from Mailman.Queue.sbcache import get_switchboard from Mailman.Logging.Utils import LogStdErr from Mailman.Logging.Syslog import syslog +import mimelib.Errors from mimelib.Parser import Parser # Work around known problems with some RedHat cron daemons @@ -115,7 +116,13 @@ def poll_newsgroup(mlist, conn, first, last, glock): lines.extend(body) lines.append('') p = Parser(Message.Message) - msg = p.parsestr(NL.join(lines)) + try: + msg = p.parsestr(NL.join(lines)) + except mimelib.Errors.MessageError, e: + syslog('fromusenet', + 'mimelib exception for %s:%d\n%s', + mlist.linked_newsgroup, num, e) + continue if found_to: del msg['X-Originally'] msg['X-Originally-To'] = msg['To'] |
