summaryrefslogblamecommitdiff
path: root/posts/2008-08-19-offlineimap-on-osx.md
blob: eff9076a64e606752d7aed89e38d966b197d6960 (plain) (tree)





















                                                                                                                                         
If you are using offlineimap on leopard, on an imap connection with ssl (like GMail) and it keep crashing because of the following error:

``` bash
File "/Library/Python/2.5/site-packages/offlineimap/imaplibutil.py", line 70, in _read
return self.sslsock.read(n)
MemoryError
```

you can fix it with this fix:

``` bash
sudo vim /Library/Python/2.5/site-packages/offlineimap/imaplibutil.py +70
```

then, comment line 70 and add this line

``` python
return self.sslsock.read(min(n, 16384))
#return self.sslsock.read(n)
```

you can read a description of the bug here.