Am 29.07.2011 um 13:18 schrieb Axel Rau: > > Am 19.07.2011 um 23:21 schrieb R. David Murray: > >> I'm especially interested in anyone with a working program that uses >> email in 3.2: it should be completely backward compatible, and if it >> isn't I want to know ASAP.[*] > I just started testing a SpamCop reporter (800 lines of code). > Runs perfect so far. 1st problem: ---- Traceback (most recent call last): File "/usr/local/etc/exim/erdb_bt.py", line 834, in <module> reporter.addReport(spam) File "/usr/local/etc/exim/erdb_bt.py", line 227, in addReport self.flushReports() File "/usr/local/etc/exim/erdb_bt.py", line 258, in flushReports smtp.send_message(self.msg) File "/usr/local/lib/python3.2/smtplib.py", line 790, in send_message g.flatten(msg, linesep='\r\n') File "/usr/local/lib/python3.2/email/generator.py", line 99, in flatten self._write(msg) File "/usr/local/lib/python3.2/email/generator.py", line 145, in _write self._dispatch(msg) File "/usr/local/lib/python3.2/email/generator.py", line 171, in _dispatch meth(msg) File "/usr/local/lib/python3.2/email/generator.py", line 232, in _handle_multipart g.flatten(part, unixfrom=False, linesep=self._NL) File "/usr/local/lib/python3.2/email/generator.py", line 99, in flatten self._write(msg) File "/usr/local/lib/python3.2/email/generator.py", line 152, in _write self._write_headers(msg) File "/usr/local/lib/python3.2/email/generator.py", line 373, in _write_headers for h, v in msg._headers: ValueError: too many values to unpack (expected 2) ---- At least seems not to be compatible with my bugs. What am I doing wrong? https://www.chaos1.de/svn-public/repos/network-tools/ERDB/trunk/database/erdb_bt.py Axel --- PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius
_______________________________________________ Email-SIG mailing list Email-SIG@python.org Your options: http://mail.python.org/mailman/options/email-sig/archive%40mail-archive.com