Re: Unexpected output of "notmuch new --quiet"

Subject:Re: Unexpected output of "notmuch new --quiet"

Date:Fri, 19 Apr 2019 13:25:57 -0300

To:Ralph Seichter ,notmuch@notmuchmail.org

Cc:

From:David Bremner


Ralph Seichter <abbot@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. 
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: