From rdmurray at bitdance.com Mon Jun 11 03:43:31 2012 From: rdmurray at bitdance.com (R. David Murray) Date: Sun, 10 Jun 2012 21:43:31 -0400 Subject: [Email-SIG] Is this mic on? (mailing list issues) Message-ID: <20120611014332.0B4472500A3@webabinitio.net> I just realized that on June 6th I got four old messages delivered to my email-sig folder, ranging from February on. At least one of them appears to be a reply to a message I don't seem to have received. Was there some problem with this mailing list and is it fixed now? Or was it just me? --David From mark at msapiro.net Mon Jun 11 04:31:22 2012 From: mark at msapiro.net (Mark Sapiro) Date: Sun, 10 Jun 2012 19:31:22 -0700 Subject: [Email-SIG] Is this mic on? (mailing list issues) In-Reply-To: <20120611014332.0B4472500A3@webabinitio.net> Message-ID: R. David Murray wrote: >I just realized that on June 6th I got four old messages delivered to my >email-sig folder, ranging from February on. At least one of them appears >to be a reply to a message I don't seem to have received. Was there some >problem with this mailing list and is it fixed now? Or was it just me? If you look at the headers of those messages, you'll see X-Mailman-Approved-At: Wed, 06 Jun 2012 10:11:24 +0200 (or a bit thereafter). These messages were held for moderator approval, and no one was attending to this until June 6 when they were approved. -- Mark Sapiro The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan From rdmurray at bitdance.com Mon Jun 11 13:45:55 2012 From: rdmurray at bitdance.com (R. David Murray) Date: Mon, 11 Jun 2012 07:45:55 -0400 Subject: [Email-SIG] Is this mic on? (mailing list issues) In-Reply-To: References: Message-ID: <20120611114556.51B6025009E@webabinitio.net> On Sun, 10 Jun 2012 19:31:22 -0700, Mark Sapiro wrote: > R. David Murray wrote: > > >I just realized that on June 6th I got four old messages delivered to my > >email-sig folder, ranging from February on. At least one of them appears > >to be a reply to a message I don't seem to have received. Was there some > >problem with this mailing list and is it fixed now? Or was it just me? > > > If you look at the headers of those messages, you'll see > > X-Mailman-Approved-At: Wed, 06 Jun 2012 10:11:24 +0200 > > (or a bit thereafter). These messages were held for moderator approval, > and no one was attending to this until June 6 when they were approved. Ah, thank you. I actually looked at the headers to confirm that the it wasn't my system that introduced the delay, but I was focused on the Received headers and must have missed that one. --David From rdmurray at bitdance.com Mon Jun 11 13:50:42 2012 From: rdmurray at bitdance.com (R. David Murray) Date: Mon, 11 Jun 2012 07:50:42 -0400 Subject: [Email-SIG] I don't understand why this fails: mbox to maildir based on docs In-Reply-To: <201202241818.27577.joseph.2011@reagle.org> References: <201202241818.27577.joseph.2011@reagle.org> Message-ID: <20120611115043.9E3B925009E@webabinitio.net> So this was issue 11401, right? On Fri, 24 Feb 2012 18:18:27 -0500, Joseph Reagle wrote: > I'm trying to do something real simple. Replicate an example in the docs for moving messages from maildir to mbox. (Docs use Babyl mailbox to an MH mailbox). But I'm failing and I don't know why?!? > > > > ~~~~ > > def convert_maildir(path): > """Convert a maildir to mbox. > Replicates http://docs.python.org/py3k/library/mailbox.html#examples for maildir2mbox""" > info("converting %s" %path) > > destination = mailbox.mbox('~/inbox.mbox') > destination.lock() > for message in mailbox.Maildir(path): > info("message type = %s" %type(message)) > destination.add(mailbox.MaildirMessage(message)) > destination.close() > > 20 20 find_: filename = Mail/inbox/ > 20 find_: appending Mail/inbox/ > 20 conve: converting /home/reagle/Mail/inbox > 20 conve: message type = > Traceback (most recent call last): > File "/home/reagle/bin/kmail2mbox.py", line 75, in > convert_maildir(maildir) > File "/home/reagle/bin/kmail2mbox.py", line 43, in convert_maildir > destination.add(mailbox.MaildirMessage(message)) > File "/usr/lib/python3.2/mailbox.py", line 595, in add > self._toc[self._next_key] = self._append_message(message) > File "/usr/lib/python3.2/mailbox.py", line 733, in _append_message > offsets = self._install_message(message) > File "/usr/lib/python3.2/mailbox.py", line 805, in _install_message > self._dump_message(message, self._file, self._mangle_from_) > 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) > IndexError: list index out of range > > ~~~~ > > > _______________________________________________ > Email-SIG mailing list > Email-SIG at python.org > Your options: http://mail.python.org/mailman/options/email-sig/rdmurray%40bitdance.com From rdmurray at bitdance.com Mon Jun 11 13:52:12 2012 From: rdmurray at bitdance.com (R. David Murray) Date: Mon, 11 Jun 2012 07:52:12 -0400 Subject: [Email-SIG] encoding error in email/generator.py In-Reply-To: <201202271344.13993.joseph.2011@reagle.org> References: <201202271344.13993.joseph.2011@reagle.org> Message-ID: <20120611115213.7281825009E@webabinitio.net> Did you report this on bugs.python.org? Is it still an issue? If it is please do so, and provide the source message that causes the problem. On Mon, 27 Feb 2012 13:44:13 -0500, Joseph Reagle wrote: > > Hi Barry, I'm trying to do something real simple and already bumped into a bug in header.py, now I'm getting an error in generator.py . I can send the message (off list) if needed. > > def convert_maildir_using_lib(path): > """Convert a maildir to mbox. > Replicates http://docs.python.org/py3k/library/mailbox.html#examples for maildir2mbox > header.py must be patched first http://bugs.python.org/issue11401""" > info("converting %s" %path) > > dest_path = basename(path) > destination = mailbox.mbox(dest_path) > destination.lock() > for message in mailbox.Maildir(path): > info("message subject = %s" %message['subject']) > destination.add(mailbox.MaildirMessage(message)) > destination.close() > > > 20 conve: message subject = Re: SPAM-LOW: Re: Catchin' up > Traceback (most recent call last): > File "bin/kmail2mbox.py", line 95, in > convert_maildir(maildir) > File "bin/kmail2mbox.py", line 47, in convert_maildir_using_lib > destination.add(mailbox.MaildirMessage(message)) > File "/usr/lib/python3.2/mailbox.py", line 595, in add > self._toc[self._next_key] = self._append_message(message) > File "/usr/lib/python3.2/mailbox.py", line 733, in _append_message > offsets = self._install_message(message) > File "/usr/lib/python3.2/mailbox.py", line 805, in _install_message > self._dump_message(message, self._file, self._mangle_from_) > 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 134, in _write > self._dispatch(msg) > File "/usr/lib/python3.2/email/generator.py", line 160, in _dispatch > meth(msg) > File "/usr/lib/python3.2/email/generator.py", line 221, in _handle_multipart > g.flatten(part, unixfrom=False, linesep=self._NL) > File "/usr/lib/python3.2/email/generator.py", line 88, in flatten > self._write(msg) > File "/usr/lib/python3.2/email/generator.py", line 134, in _write > self._dispatch(msg) > File "/usr/lib/python3.2/email/generator.py", line 160, in _dispatch > meth(msg) > File "/usr/lib/python3.2/email/generator.py", line 385, in _handle_text > super(BytesGenerator,self)._handle_text(msg) > File "/usr/lib/python3.2/email/generator.py", line 198, in _handle_text > self.write(payload) > File "/usr/lib/python3.2/email/generator.py", line 346, in write > self._fp.write(s.encode('ascii', 'surrogateescape')) > UnicodeEncodeError: 'ascii' codec can't encode character '\xa0' in position 211: ordinal not in range(128) > > _______________________________________________ > Email-SIG mailing list > Email-SIG at python.org > Your options: http://mail.python.org/mailman/options/email-sig/rdmurray%40bitdance.com