[Mailman-Users] HELP! on 2.1a2 anyone there???
Barry A. Warsaw
barry at zope.com
Wed Jul 25 07:16:14 CEST 2001
>>>>> "JDB" == J D Bronson <jeff at xpec.com> writes:
JDB> When running gate_news, it BOMBS on something. Yesterday it
JDB> was a different group...today a different group.
There are messages with broken MIME boundaries and mimelib barfs on
these. I'm not sure this is the best solution, but the attached patch
ought to keep you going (untested).
Also, can I ask everyone who's playing with Mailman 2.1alpha to please
use the mailman-developers list instead of mailman-users? From now
on, I'll just automatically change the Cc: on such messages to point
over there.
Thanks,
-Barry
Index: gate_news
===================================================================
RCS file: /cvsroot/mailman/mailman/cron/gate_news,v
retrieving revision 2.3
diff -u -r2.3 gate_news
--- gate_news 2001/02/16 06:21:23 2.3
+++ gate_news 2001/07/25 05:13:29
@@ -46,6 +46,7 @@
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 @@
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']
More information about the Mailman-Users
mailing list