summaryrefslogtreecommitdiff
path: root/posts/2008-08-19-offlineimap-on-osx.org
blob: 6f5311f5384c13754c2a874a6c517398532a87ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
If you are using offlineimap on leopard, on an imap connection with ssl
(like GMail) and it keep crashing because of the following error:

#+BEGIN_SRC sh
    File "/Library/Python/2.5/site-packages/offlineimap/imaplibutil.py", line 70, in _read
    return self.sslsock.read(n)
    MemoryError
#+END_SRC

you can fix it with this fix:

#+BEGIN_SRC sh
    sudo vim /Library/Python/2.5/site-packages/offlineimap/imaplibutil.py +70
#+END_SRC

then, comment line 70 and add this line

#+BEGIN_SRC python
    return self.sslsock.read(min(n, 16384))
    #return self.sslsock.read(n)
#+END_SRC

you can read a description of the bug here.