diff options
| author | Jani Nikula <jani@nikula.org> | 2017-10-14 16:16:27 +0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-12-15 07:54:33 -0400 |
| commit | f2a6790583825ffe3c564582f9a93a6c50d8430a (patch) | |
| tree | 5da9bcf09ccea35c3c108762dfe2f8ba5c717ab8 /doc | |
| parent | 89f651a40374d07750528f45d555ce821c049c80 (diff) | |
cli/new: support /<regex>/ in new.ignore
Add support for using /<regex>/ style regular expressions in
new.ignore, mixed with the old style verbatim file and directory
basenames. The regex is matched against the relative path from the
database path.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/man1/notmuch-config.rst | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/doc/man1/notmuch-config.rst b/doc/man1/notmuch-config.rst index 3ba849b2..9d6ff107 100644 --- a/doc/man1/notmuch-config.rst +++ b/doc/man1/notmuch-config.rst @@ -79,11 +79,22 @@ The available configuration items are described below. Default: ``unread;inbox``. **new.ignore** - A list of file and directory names, without path, that will not - be searched for messages by **notmuch new**. All the files and - directories matching any of the names specified here will be - ignored, regardless of the location in the mail store directory - hierarchy. + A list to specify files and directories that will not be + searched for messages by **notmuch new**. Each entry in the + list is either: + + A file or a directory name, without path, that will be + ignored, regardless of the location in the mail store + directory hierarchy. + + Or: + + A regular expression delimited with // that will be matched + against the path of the file or directory relative to the + database path. Matching files and directories will be + ignored. The beginning and end of string must be explictly + anchored. For example, /.*/foo$/ would match "bar/foo" and + "bar/baz/foo", but not "foo" or "bar/foobar". Default: empty list. |
