New submission from Steffen Daode Nurpmeso <sdao...@googlemail.com>:
Following Issue 9124 discussion: it took longer than i thought, but now i could rework my thing and got errors. I've also tried Lib/test/test_mailbox.py, and that produces 0xA errors and 0xA failures. I'll attach the entire tracebacks and test output as email_mbox.txt. My local Py3K repo is at changeset HG:33774ca03c96 (SVN:r88332) Here are only the exceptions: ========== | [Opening mailbox "OLD.sdaoden.mbox" as mbox | * Box contains 8 messages | * Dispatching message 1 ERROR: failed to handle box "OLD.sdaoden.mbox" Traceback (most recent call last): File "./s-postman.py", line 1078, in _walk self._do_mailbox(mailbox) File "./s-postman.py", line 1088, in _do_mailbox Ticket.process_message(msg) File "./s-postman.py", line 987, in process_message print(msg) File "usr/lib/python3.2/email/message.py", line 152, in __str__ return self.as_string() File "usr/lib/python3.2/email/message.py", line 167, in as_string g.flatten(self, unixfrom=unixfrom) File "usr/lib/python3.2/email/generator.py", line 88, in flatten self._write(msg) File "usr/lib/python3.2/email/generator.py", line 141, in _write self._write_headers(msg) File "usr/lib/python3.2/email/generator.py", line 176, in _write_headers self.write(header.encode(linesep=self._NL)+self._NL) File "usr/lib/python3.2/email/header.py", line 317, in encode formatter.feed(lines[0], charset) Exception: IndexError: list index out of range Continue [yY - else no]? n Exit due to errors as above =========== PANIC: Box test.mdir: message-add failed, mails may be lost FIXME about fetch modus which saves the stuff somewhere Traceback (most recent call last): File "./s-postman.py", line 739, in add_ticket mailbox.add(ticket.message) File "usr/lib/python3.2/mailbox.py", line 269, in add self._dump_message(message, tmp_file) File "usr/lib/python3.2/mailbox.py", line 215, in _dump_message gen.flatten(message) File "usr/lib/python3.2/email/generator.py", line 88, in flatten self._write(msg) File "usr/lib/python3.2/email/generator.py", line 141, in _write self._write_headers(msg) File "usr/lib/python3.2/email/generator.py", line 373, in _write_headers self.write(header.encode(linesep=self._NL)+self._NL) File "usr/lib/python3.2/email/header.py", line 317, in encode formatter.feed(lines[0], charset) Exception: IndexError: list index out of range ========== > Changing Ticket.process_message() to: > def process_message(msg): > print("Message-Type: ", msg.__name__) ERROR: failed to handle box "src/s-postman/OLD.sdaoden.mbox" Traceback (most recent call last): File "./s-postman.py", line 1078, in _walk self._do_mailbox(mailbox) File "./s-postman.py", line 1088, in _do_mailbox Ticket.process_message(msg) File "./s-postman.py", line 987, in process_message print("Message-Type: ", msg.__name__) Exception: AttributeError: 'mboxMessage' object has no attribute '__name__' Continue [yY - else no]? n Exit due to errors as above ========== > And this is about Lib/test/test_mailbox.py 21:30 ~/py3k.hg/Lib/test $ python3 test_mailbox.py > ~/tmp/test.txt Traceback (most recent call last): File "test_mailbox.py", line 2091, in <module> test_main() File "test_mailbox.py", line 2086, in test_main support.run_unittest(*tests) File "/usr/lib/python3.2/test/support.py", line 1145, in run_unittest _run_suite(suite) File "/usr/lib/python3.2/test/support.py", line 1128, in _run_suite raise TestFailed(err) test.support.TestFailed: multiple errors occurred ---------- components: Library (Lib) files: email_mbox.txt messages: 127880 nosy: sdaoden priority: normal severity: normal status: open title: mailbox and email errors type: behavior versions: Python 3.2 Added file: http://bugs.python.org/file20673/email_mbox.txt _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11116> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com