Sebastian at SSpaeth.de
Wed Nov 2 09:00:21 GMT 2011
On Tue, 1 Nov 2011 16:44:02 +0000, Tom Vincent <oss at tlvince.com> wrote:
> I've noticed this happen frequently on the INBOX directory of Gmail
> The following debug snippet seems to show it switches between
> "READ-WRITE" and "READ" statuses:
Hi there, it is OK for us to sometimes select a folder as RO (we do that
e.g. when we cache messages status.) and sometimes as RW. However, what
seems to be happening here, is that we are trying to select the inbox,
and the server responds with OK. I don't know where the error "ERROR:
Server 'imap.gmail.com' closed connection, error on SELECT
'INBOX'. Server said: INBOX is not writable" is coming from.
I have never seen that error myself.
I have now pushed the following commit to both my next and master
branch, which might help fix things, at least it makes things more
correct in any case. Does current master on my git repository
(git://github.com/spaetz/offlineimap.git) make things work?
Author: Sebastian Spaeth <Sebastian at SSpaeth.de>
Date: Wed Nov 2 08:40:03 2011 +0100
Fix mbox.select(foldername) readonly parameter comparison
The default parameter value was "None", and we were comparing that
directly to the imaplib2 value of is_readonly which is False or True, so
the comparison always returned "False".
Fix this by setting the default parameter to "False" and not
"None". Also convert all users of that function to use False/True.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: not available
More information about the OfflineIMAP-project