Ignoring emacs lock files?

Christian Hopps chopps at gmail.com
Sat Dec 5 08:55:36 GMT 2015


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20151205/3b6c4f37/attachment-0002.sig>


More information about the OfflineIMAP-project mailing list