offlineimap and google chat logs

Eygene Ryabinkin rea-fbsd at codelabs.ru
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 'imap.gmail.com' closed connection, error on SELECT
> '[Gmail]/Chats'. Server said: [Gmail]/Chats is not writable

And the reason is that the wrapper for the IMAPlib (imaplibutil.py)
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
  http://codelabs.ru/patches/offlineimap/2012-properly-detect-readonly-folders.diff

It fixed the problem with my simple test case with GMail 'Chats'
folder.
-- 
Eygene Ryabinkin                                        ,,,^..^,,,
[ Life's unfair - but root password helps!           | codelabs.ru ]
[ 82FE 06BC D497 C0DE 49EC  4FF0 16AF 9EAE 8152 ECFB | freebsd.org ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20120805/1d5b382c/attachment-0001.sig>


More information about the OfflineIMAP-project mailing list