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

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

Date:Wed, 14 Sep 2011 00:32:01 +0300

To:notmuch@notmuchmail.org

Cc:

From:tomi.ollila@iki.fi


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(-)


Thread: