David Bremner wrote:
> Carl Worth <cworth@cworth.org> writes:
>
> > What it could also do is create some placeholder file like
> > .NOTMUCH-MUTT-OUTPUT-DIR when it writes its output. And then it could
> > check for that file's existence before removing a directory.
>
> Sounds reasonable to me. Would someone like to make a patch for
> notmuch-mutt?
This has the problem that the migration from existing search cache
Maildirs to the new setup needs users to do manual work and that they
or something else could later modify the migrated Maildir by adding
real mail data or subfolders containing real data.
I think a better option is to detect if the search cache Maildir is
actually a Maildir and doesn't contain any data that could be lost.
I have attached three patches I created to improve notmuch-mutt safety.
--
bye,
pabs
https://bonedaddy.net/pabs3/