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): 
  line 575, in syncfolder 
    localfolder.syncmessagesto(remotefolder, statusfolder) 
  line 1046, in syncmessagesto 
    action(dstfolder, statusfolder) 
  line 876, in __syncmessagesto_copy 
    register = 0) 
  line 782, in copymessageto 
    rtime = self.getmessagetime(uid) 
  line 266, in getmessagetime 
    return os.path.getmtime(filepath) 
  line 62, in getmtime 
    return os.stat(filename).st_mtime 
OSError: [Errno 2] No such file or directory: 
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.

-------------- 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