[PATCH 0/3] Configuration file option to exclude files/directories

tomi.ollila at iki.fi tomi.ollila at iki.fi
Tue Sep 13 14:32:01 PDT 2011


This patch set adds a configuration option 'database.exclude'; a list of
files/directories to be excluded when doing 'notmuch new' operation.

Notes:

1) Currently the comments for newly created configuration file are not
updated, so for not this is 'undocumented feature'. Should there be an
empty configuration line as a placeholder ... ?

2) Whenever some already existing directory is added to the exclude list
and the parent directory timestamp has not changed, notmuch new will not
notice the directory has gone (as it still is there), user needs to 'touch'
the parent directory before next 'notmuch new' no make notmuch notice.

3) count_files() function is not touched. The functionality there has fallen
behind of add_files_recursive (maildir+tmp check and following symlinks).
The question there should it be updated, or attempted to merge with
add_files (as the comment says). count_files() is only called at the beginning
when database is not yet initialised.

Tomi

 notmuch-client.h |    3 ++
 notmuch-config.c |   89 +++++++++++++++++++++++++++++++++++++++--------------
 notmuch-new.c    |   22 ++++++++++++-
 3 files changed, 88 insertions(+), 26 deletions(-)



More information about the notmuch mailing list