not writable

Sebastian Spaeth Sebastian at
Wed Nov 2 09:00:21 GMT 2011

On Tue, 1 Nov 2011 16:44:02 +0000, Tom Vincent <oss at> wrote:
> I've noticed this happen frequently on the INBOX directory of Gmail
> accounts.
> 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 '' 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:// make things work?

commit 8b3ed8b00451e5f1145c93e6171cb8613903ac1c
Author: Sebastian Spaeth <Sebastian at>
Date:   Wed Nov 2 08:40:03 2011 +0100

    Fix 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
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <>

More information about the OfflineIMAP-project mailing list