Unexpected output of "notmuch new --quiet"

David Bremner david at tethera.net
Fri Apr 19 09:25:57 PDT 2019


Ralph Seichter <abbot at monksofcool.net> writes:

> * Ralph Seichter:
>
>> ignore=//dovecot[[:punct:]]/;/(maildirfolder|subscriptions)$/;
>
> Odd. I am currently adding this entry to some users' config files, and
> the expression //dovecot[[:punct:]]/ does not seem to work in all
> cases. Based on notmuch-search-terms(7) I assumed that Notmuch used
> POSIX.2 regular expressions, does it not?

I think I can duplicate the problem you see, and it's not about POSIX.2,
but rather that the paths are stored in the database (and match)
relative to the top level Maildir. So the leading '/' isn't there to
match for top level files.

This version seems to work for me.

     ignore=/(^|/)dovecot[-.]/;/(maildirfolder|subscriptions)$/;

Maybe regexp experts can suggest the canonical way to do this;
potentially we could add another example to the docs. 


More information about the notmuch mailing list