Memory errors with imaplib

Fredrik Lundh fredrik at pythonware.com
Sun Jan 20 07:51:08 EST 2008


Martey wrote:

> I am trying to use imaplib to download messages, but I keep getting
> memory errors when I try to download a large message (i.e. one with
> attachments). Here is my test code (similar to the example in the
> imaplib documentation):

 > /.../

> I am using Mac OS X 10.5 and Python 2.5.1 (downloaded from
> python.org). I think it is possible that it is <http://bugs.python.org/
> issue1092502>, but the workarounds suggested there do not seem to work
> for me. Is this an actual Python bug, or am I doing something wrong?

looks like a known bug in imaplib:

     http://bugs.python.org/issue1389051

     "In a worst case scenario, you'll need some 13 gigabytes of
     virtual memory to read a 15 megabyte message..."

</F>




More information about the Python-list mailing list