]> code.delx.au - offlineimap/commit
Apply darwin.patch from Vincent Beffara
authorJohn Goerzen <jgoerzen@complete.org>
Thu, 1 May 2008 20:20:56 +0000 (15:20 -0500)
committerJohn Goerzen <jgoerzen@complete.org>
Thu, 1 May 2008 20:20:56 +0000 (15:20 -0500)
commit9f5c8d708bfa9c16092255a59e13fe8171588c7a
treeb7336e59719ae8409118a98eeedd530159e28dab
parent1b0788cb24629be13894ad857b01a7285e6d6459
Apply darwin.patch from Vincent Beffara

fixes #20

 04/27/2008 09:34 AM - Vincent Beffara

    * File darwin.patch added

OK, I finally installed an IMAPS server on my iMac, so I could test a
little further. For some reason, fixing the read() method in
imaplibutil.py did not seem to work (it hung on connecting to the
server) - however, modifying the file imapserver.py similarly to the
non-SSL case fixed the crash.

I also reduced the chunk size to 100k instead of 1M, as 1M seemed to
still trigger the memory error in some cases. Ah, and I added a
platform test, so that the patch does essentially nothing on
non-Darwin machines ...

So, still no guarantee, but the attached patch works for me. Any
comments ?

(If noone here screams in horror at my code, I will include the patch
into the Fink package and see what happens there.)
offlineimap/imapserver.py