Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 43B9B40D141 for ; Wed, 13 Oct 2010 02:09:18 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s1d4--HCKyYT for ; Wed, 13 Oct 2010 02:09:07 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 603D240D143 for ; Wed, 13 Oct 2010 02:09:07 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id F01E419F33E2; Wed, 13 Oct 2010 11:09:05 +0200 (CEST) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id 19dnV545cGsO; Wed, 13 Oct 2010 11:09:03 +0200 (CEST) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id 0E47919F33D9; Wed, 13 Oct 2010 11:09:02 +0200 (CEST) Received: from steelpick.2x.cz (note-sojka.felk.cvut.cz [147.32.86.30]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id 195D115C082; Wed, 13 Oct 2010 11:09:02 +0200 (CEST) Received: from wsh by steelpick.2x.cz with local (Exim 4.72) (envelope-from ) id 1P5xKX-0003uj-Fa; Wed, 13 Oct 2010 11:09:01 +0200 From: Michal Sojka To: Andreas Amann , notmuch@notmuchmail.org Subject: Re: [PATCH] Allow user to specify ignored directories In-Reply-To: References: User-Agent: Notmuch/0.3.1-83-g6fec75f (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Wed, 13 Oct 2010 11:09:01 +0200 Message-ID: <87zkui1mtu.fsf@steelpick.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2010 09:09:18 -0000 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