[PATCH] folder/Maildir: ignore dot files

Nicolas Sebrecht nicolas.s-dev at laposte.net
Sun Dec 6 04:16:12 GMT 2015

Hi Cameron,

On Sun, Dec 06, 2015 at 12:08:54PM +1100, Cameron Simpson wrote:
> On 05Dec2015 12:55, Nicolas Sebrecht <nicolas.s-dev at laposte.net> wrote:

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

AFAIR, we don't even exclude files with a colon.

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

About my patch, I decided to ignore dot files only to both go the lazy
way and be legacy compatible as much as possible.

However, I'd welcome patches for stricter matching rules about naming
schemes as long as it's made optional. We could even make such option
the default and see if counter examples exist in wild since users can
roll back to the historic behaviour. :-)

Something like "maildir_scan_strict_naming = yes" and a documentation
line requesting feedback from users having to change to "no".

Nicolas Sebrecht

More information about the OfflineIMAP-project mailing list