offlineimap and google chat logs

Eygene Ryabinkin rea-fbsd at
Sun Aug 5 19:57:24 BST 2012

Abdo, good day.

Thu, Aug 02, 2012 at 03:40:42PM +0200, Abdó Roig wrote:
> I'm using offlineimap to keep backups of my gmail data (email + chat
> logs). There is an issue regarding chat logs. The Chats IMAP folder
> seems to be readonly, and for some reason offlineimap fails with error
>    ERROR: Aborting sync, folder 'Chats' [acc: 'gchat']
>    Server '' closed connection, error on SELECT
> '[Gmail]/Chats'. Server said: [Gmail]/Chats is not writable

And the reason is that the wrapper for the IMAPlib (
is no longer passes the 'readonly' exception to the caller, so it
is catched by the 'abort' block and mutated the the new exception
that wasn't thrown by the original code.

Please, try the patch at

It fixed the problem with my simple test case with GMail 'Chats'
Eygene Ryabinkin                                        ,,,^..^,,,
[ Life's unfair - but root password helps!           | ]
[ 82FE 06BC D497 C0DE 49EC  4FF0 16AF 9EAE 8152 ECFB | ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <>

More information about the OfflineIMAP-project mailing list