Re: MS Outlook READ confirmation
[email protected] Fri, 19 Mar 2010 23:03:49 -0400
| Newsgroups | gmane.mail.spam.tmda.devel |
|---|---|
| Message-ID | <[email protected]> |
From: Ricardo Buchalla Auada <[email protected]> Date: Fri, 19 Mar 2010 18:38:39 -0300 It looks similar, yes ! Look one of the mesages that are stuck and seems that all are rfc822 compliant: Looks good to me, too. Is there a way to skip this error ? Regards, -- Ricardo Buchalla Auada Here's the patch that worked for me (YMMV, of course). The comment talks only about message/rfc822, but this code appears to run for other message/* bodies. (But for some reason, I can no longer find the code where it is called, so I can't be sure.) -- Bob ------------------------------------------------------------------------ diff -u /usr/lib/python2.5/site-packages/TMDA/pythonlib/email/generator.py /usr/lib/python2.5/site-packages/TMDA/pythonlib/email/generator.py.\~1\~ --- /usr/lib/python2.5/site-packages/TMDA/pythonlib/email/generator.py 2010-01-06 12:59:54.000000000 -0500 +++ /usr/lib/python2.5/site-packages/TMDA/pythonlib/email/generator.py.~1~ 2009-01-22 11:04:41.000000000 -0500 @@ -257,18 +257,14 @@ self._fp.write(NL.join(blocks)) def _handle_message(self, msg): + s = StringIO() + g = self.clone(s) # The payload of a message/rfc822 part should be a multipart sequence # of length 1. The zeroth element of the list should be the Message # object for the subpart. Extract that object, stringify it, and # write it out. - payload = msg._payload - if isinstance(payload, list): - s = StringIO() - g = self.clone(s) - g.flatten(payload[0], unixfrom=False) - self._fp.write(s.getvalue()) - else: - self._fp.write(payload) + g.flatten(msg.get_payload(0), unixfrom=False) + self._fp.write(s.getvalue()) Diff finished. Wed Jan 6 15:24:53 2010 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ tmda-workers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tmda-workers