unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Michal Sojka <sojkam1@fel.cvut.cz>
To: Andreas Amann <andreas.amann@tyndall.ie>, notmuch@notmuchmail.org
Subject: Re: [PATCH] Allow user to specify ignored directories
Date: Wed, 13 Oct 2010 11:09:01 +0200	[thread overview]
Message-ID: <87zkui1mtu.fsf@steelpick.2x.cz> (raw)
In-Reply-To: <ylp7hi23mw8.fsf@tyndall.ie>

On Thu, 30 Sep 2010, Andreas Amann wrote:
> Hi list,
> 
> this is my first post. I found notmuch a couple of days ago and it works
> great. However I wanted to be able to ignore certain directories (mostly
> .git in my case) when "notmuch new" is running. 
> 
> With this patch the user can provide a list of directories which are
> ignored during the recursive search for new messages. An "ignore"
> label in the "new" section of the configuration file is added for this
> purpose to enable for example something like

Hi,

thanks, the patch seems good to me. See the comment bellow.


> @@ -202,7 +219,8 @@ _entries_resemble_maildir (struct dirent **entries, int count)
>  static notmuch_status_t
>  add_files_recursive (notmuch_database_t *notmuch,
>                      const char *path,
> -                    add_files_state_t *state)
> +                    add_files_state_t *state,
> +                     notmuch_config_t *config)

I would not add additional parameter here. It's IMHO better to add field
"ignored_files" to add_files_state_t similarly as it is done for
new_tags.

-Michal

  reply	other threads:[~2010-10-13  9:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-30 22:08 [PATCH] Allow user to specify ignored directories Andreas Amann
2010-10-13  9:09 ` Michal Sojka [this message]
2010-10-13 23:12   ` Andreas Amann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zkui1mtu.fsf@steelpick.2x.cz \
    --to=sojkam1@fel.cvut.cz \
    --cc=andreas.amann@tyndall.ie \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).