[PATCH] folder/Maildir: ignore dot files

Cameron Simpson cs at zip.com.au
Sun Dec 6 01:08:54 GMT 2015


On 05Dec2015 12:55, Nicolas Sebrecht <nicolas.s-dev at laposte.net> wrote:
>
>On Sat, Dec 05, 2015 at 03:55:36AM -0500, Christian Hopps wrote:
>> 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:
><...>
>> 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.
>
>While at it, I'd rather make OfflineIMAP ignore any dot file.

Might I advocate for ignoring any filename not adhering to the maildir filename 
shape? See:

  http://cr.yp.to/proto/maildir.html

You might choose to be less strict, but still require filenames to start with a 
digit (old scheme) or one of #XRIVMPQ.

Also, have we any counter examples  of maildir using programs which do not 
_create_ files according to the scheme?

Cheers,
Cameron Simpson <cs at zip.com.au>




More information about the OfflineIMAP-project mailing list