Bug #61
problem with read-only imap folders - bug or imap-inherent?
| Status : | Feedback | Start : | 03/26/2008 | |
| Priority : | Normal | Due date : | ||
| Assigned to : | John Goerzen | % Done : | 0% |
|
| Category : | - | |||
| Target version : | - | |||
| Resolution : |
Description
Hi all,
I have a problem with a read-only folder -my setup: mutt with offlineimap (called "inline" via macro), two different imap accounts.
Sometimes sync fails with something like:
...
Thread 'Folder sync dassit[user.shared.RedHatNetwork]' terminated with exception:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/offlineimap/threadutil.py", line 153, in run
Thread.run(self)
File "threading.py", line 440, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.5/site-packages/offlineimap/accounts.py", line 247, in syncfolder
localfolder.syncmessagesto(statusfolder, [remotefolder, statusfolder])
File "/usr/lib/python2.5/site-packages/offlineimap/folder/Base.py", line 396, in syncmessagesto
self.syncmessagesto_flags(dest, applyto)
File "/usr/lib/python2.5/site-packages/offlineimap/folder/Base.py", line 373, in syncmessagesto_flags
object.addmessagesflags(addflaglist[flag], [flag])
File "/usr/lib/python2.5/site-packages/offlineimap/folder/IMAP.py", line 351, in addmessagesflags
self.addmessagesflags_noconvert(uidlist, flags)
File "/usr/lib/python2.5/site-packages/offlineimap/folder/IMAP.py", line 345, in addmessagesflags_noconvert
self.processmessagesflags('+', uidlist, flags)
File "/usr/lib/python2.5/site-packages/offlineimap/folder/IMAP.py", line 363, in processmessagesflags
self.processmessagesflags(operation, uidlist[100:], flags)
File "/usr/lib/python2.5/site-packages/offlineimap/folder/IMAP.py", line 362, in processmessagesflags
self.processmessagesflags(operation, uidlist[:100], flags)
File "/usr/lib/python2.5/site-packages/offlineimap/folder/IMAP.py", line 376, in processmessagesflags
imaputil.flagsmaildir2imap(flags))
File "imaplib.py", line 752, in uid
typ, dat = self._simple_command(name, command, *args)
File "imaplib.py", line 1055, in _simple_command
return self._command_complete(name, self._command(name, *args))
File "imaplib.py", line 823, in _command
raise self.readonly('mailbox status changed to READ-ONLY')
readonly: mailbox status changed to READ-ONLY
Last 50 debug messages logged for Folder sync dassit[user.shared.RedHatNetwork] prior to exception:
imap: options2hash called with input: ['FLAGS', '()', 'UID', '1145', 'INTERNALDATE', '"29-Feb-2008 00:29:18 +0100"']
imap: options2hash returning: {'INTERNALDATE': '"29-Feb-2008 00:29:18 +0100"', 'FLAGS': '()', 'UID': '1145'}
imap: imapsplit() called with input: FLAGS () UID 1146 INTERNALDATE "29-Feb-2008 21:39:22 +0100"
[...]
Any hint what could be the reason for this? Yes, this is a read only mailbox (I'm subscribed to many of them on my employers imap server and the problem occurs here and there with different folders...) After a while (a day, some hours,...) the problem disappears. I'm not an imap expert -so maybe this is not a problem of offlineimap but of the configuration/implementation of the imap server...?
Thank you and regards, Stefan Friedel
History
03/26/2008 01:12 PM - John Goerzen
- Assigned to set to John Goerzen
- Status changed from New to Feedback
It sounds like you want the ignore-readonly flag in your config file.
03/27/2008 03:14 AM - Stefan Friedel
Good Morning - no: I tried both yes/no for ignore-readonly w/o success. At the moment the problem disappeared (I deleted my $HOME/Mail and also the metadata .offlineimap directory and re-synced several times -suddenly it worked...)
Next time when this problem will appear I will use 1 -d imap to get more information to send
I just switched from mutts own imap-capabilities to offlineimap because I had (everytime) problems with one of my IMAP accounts which disconnects after a while (and mutt always segfaults after the disconnection). Now I switched to offlineimap (using mutt on local maildir), the disconnecting is no longer a problem - but the other account (which worked flawlessly with mutts IMAP features) is only syncing "sometimes" :-/
(another problem: specifying nested folders w/o their parents in the folderfilter leads to an interuption of offlineimap when running the first time- e.g. folderfilter = lambda foldername: foldername in ['INBOX', 'user.shared.support.blabla' ]... needs several starts until it gets synchronized. offlineimap is complaining about a missing file in .offlineimap/Account-<name>/LocalStatus "blabla is missing", it seems to me that the tree user->shared->support->blabla has to be build up in the metadata directory or so)
Thank you for your help and the product! Greetings from Germany, Stefan Friedel