Is it possible to configure offlineimap to ignore emacs lock files? When I have a draft open in emacs offlineimap fails with an error such as this:
2015-12-05 03:33:38 WARNING: ERROR: ERROR in syncfolder for [acct-removed] folder Drafts: Traceback (most recent call last): File "/usr/local/Cellar/offline-imap/6.6.0/libexec/offlineimap/accounts.py", line 575, in syncfolder localfolder.syncmessagesto(remotefolder, statusfolder) File "/usr/local/Cellar/offline-imap/6.6.0/libexec/offlineimap/folder/Base.py", line 1046, in syncmessagesto action(dstfolder, statusfolder) File "/usr/local/Cellar/offline-imap/6.6.0/libexec/offlineimap/folder/Base.py", line 876, in __syncmessagesto_copy register = 0) File "/usr/local/Cellar/offline-imap/6.6.0/libexec/offlineimap/folder/Base.py", line 782, in copymessageto rtime = self.getmessagetime(uid) File "/usr/local/Cellar/offline-imap/6.6.0/libexec/offlineimap/folder/Maildir.py", line 266, in getmessagetime return os.path.getmtime(filepath) File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/genericpath.py", line 62, in getmtime return os.stat(filename).st_mtime OSError: [Errno 2] No such file or directory: '/[path-removed]/Drafts/cur/.#1449285070.a2f54ffc8b313375.stubbs:2,DS' It would seem this could be avoided if I could configure offlineimap to ignore files matching the re "\.#.*", or by having it ignore dot files in general while syncing.
Thanks, Chris.
signature.asc
Description: PGP signature
_______________________________________________ OfflineIMAP-project mailing list: [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/offlineimap-project OfflineIMAP homepages: - https://github.com/OfflineIMAP - http://offlineimap.org
