syncfolder: ERROR attempting to sync flags - No such file or directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
offlineimap (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I just upgraded from Kubuntu 11.10 to 12.04, and as soon as I did, a reliably working cron job using offlineimap started generating errors every run. The version of offlineimap I have from 12.04 is Version: 6.3.4-1
The errors looked like the following:
=======
Account sync xxxxxxxxxxxx:
***** Processing account xxxxxxxxxxxx
Copying folder structure from IMAP to Maildir
Establishing connection to mmmmmmmm:ppp.
Folder sync [xxxxxxxxxxxx]:
Syncing fffffffffffff: IMAP -> Maildir
Copy message 14677 from fffffffffffff:
Copy message 14677 IMAP[fffffffffffff] -> Maildir[
Folder sync [xxxxxxxxxxxx]:
Adding flag S to 20 messages on fffffffffffff
WARNING: ERROR attempting to sync flags for account xxxxxxxxxxxx:
File "/usr/lib/
action(
File "/usr/lib/
dstfolder.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
os.
OSError: [Errno 2] No such file or directory
=======
I was able to (apparently) fix the problem with the following patch to
/usr/share/
understand the code well enough to be confident this fix is correct.
=======
--- Maildir.py.old 2012-06-18 03:18:48.786071861 -0500
+++ Maildir.py.new 2012-06-18 03:23:41.979234183 -0500
@@ -292,10 +292,9 @@
infostr += '2,' + ''.join(flags)
newname += infostr
- newfilename = os.path.
+ newfilename = os.path.
if (newfilename != oldfilename):
- os.rename(
- os.path.
+ os.rename(
=======
attach patch, since putting it inline mangles the spacing :)