On Sun, Jul 29, 2018 at 02:03:12PM +0300, Evgeniy Berdnikov wrote:
>  Some peculiarity is that users can create folders with names "cur",
>  "new" and "tmp", which could conflict with Maildir structure.
>  I tried this config: [...]
> 
>   SubFolders Verbatim
> 
yeah, these anomalies are exactly the reason why the other naming
patterns use leading dots.

>   Patterns * !new !cur !tmp
> 
>  1. When user creates subfolder "new" on the IMAP master tree, command
>  "mbsync -c ~/mbsyncrc -a -V --pull --create" also creates its replica
>  regardless of presence "!new" on Patterns. Output has: [...]
> 
>  Why "!new" was not applied? Is it a bug in pattern handling?
> 
the patterns are "anchored", i.e., match the whole path.
you'd need !*/new, etc.

>  2. On the second run the same "mbsync -c ~/mbsyncrc -a -V --pull --create"
>  consider recently created directories as mails, and assign them UIDs:
>  [...]
> 
>  I think mbsync should always check for file attributes in order to skip
>  non-plain files (directories, sockets, pipes and so on), at least check
>  for "new", "cur" and "tmp" under Maildirs (to reduce number of syscalls).
>
there is some checking code already iirc, but apparently it's
incomplete/buggy. you're kinda operating outside specification, and i'm
busy with other projects, so this is somewhat low priority for me to
investigate.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to