offlineimap on osx

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

File "/Library/Python/2.5/site-packages/offlineimap/", line 70, in _read

you can fix it with this fix:

sudo vim /Library/Python/2.5/site-packages/offlineimap/ +70

then, comment line 70 and add this line

return, 16384))

you can read a description of the bug here.