not writable
Sebastian Spaeth
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
> 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 '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?
commit 8b3ed8b00451e5f1145c93e6171cb8613903ac1c
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.
Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20111102/6a4e6837/attachment-0001.sig>
More information about the OfflineIMAP-project
mailing list