MemoryError in imaplib?

Márcio Faustino m.faustino at gmail.com
Sat Feb 13 20:31:47 CET 2010


Hi,

When using "imaplib" to fetch e-mail messages, the "IMAP4_SSL.read"
and "IMAP4_SSL.readline" functions sometimes throw a "MemoryError"
exception in "chunks.append(data)" and "line.append(char)",
respectively. But if I change those functions to use instead a
"cStringIO" buffer object, then that exception doesn't get thrown.

Is this normal? I've seen this happen with Python 2.6.4 in both
Windows XP 32-bit and Windows 7 64-bit.

Thanks,



More information about the Python-list mailing list