ah - I can do in a single os.path.relpath() call what it took me two splits and a join to do.
A new and improved version of the most recent patch above is attached to this post. ** Attachment added: "fix recorded filename in offlineimap Maildir.py scanfolder() Version 3 patch" https://bugs.launchpad.net/ubuntu/+source/offlineimap/+bug/1014540/+attachment/3195828/+files/offlineimap_Maildir_scanfolder_ver3 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1014540 Title: syncfolder: ERROR attempting to sync flags - No such file or directory To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/offlineimap/+bug/1014540/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs