Alternative to no longer supported folder:foo* wildcard matching ?
David Bremner
david at tethera.net
Mon Mar 9 15:06:31 PDT 2015
Jean-Marc Liotier <jm at liotier.org> writes:
>
> So nowadays, is there any other way to express "this folder and all its
> subfolders" ? The path: keyword does not seem useful for that with a
> maildir with a flat structure of dot.delimited.directories - or is there
> something like a dot.delimited.* wildcard ?
>
One option is to create symlink farm. Since it's only directories being
symlinked, it isn't that bad. I don't know how well this scales, but it
seems to work for about 200k messages in 184 mailing lists. Roughly
speaking:
% mkdir list
% cd list
% ln -s ../.list.* .
% mmv .list.* * # zsh specific, optional
% notmuch new
Notmuch new took about 10 minutes, but now I can search
'path:list/**'
to add a second level
% mkdir debian
% cd debian
% ln -s ../debian-* .
% notmuch new
Of course this could be scripted.
More information about the notmuch
mailing list