From: Fabio Zanini Date: Sat, 28 Jan 2012 14:16:57 +0000 (+0100) Subject: Re: [PATCH 2/2] added support for user-specified directories to exclude X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=b6829e2fdcd5d93f7b77a0d75b5caa0bc3aaa49c;p=notmuch-archives.git Re: [PATCH 2/2] added support for user-specified directories to exclude --- diff --git a/d8/0a09085486e39259d8d7074e5b5db2fb537b27 b/d8/0a09085486e39259d8d7074e5b5db2fb537b27 new file mode 100644 index 000000000..03c0376f9 --- /dev/null +++ b/d8/0a09085486e39259d8d7074e5b5db2fb537b27 @@ -0,0 +1,93 @@ +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 6E9E0431FBC + for ; Sat, 28 Jan 2012 06:17:00 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.799 +X-Spam-Level: +X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +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 QxbzMvkEytwH for ; + Sat, 28 Jan 2012 06:16:59 -0800 (PST) +Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com + [66.111.4.27]) + (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id D56AB431FAE + for ; Sat, 28 Jan 2012 06:16:59 -0800 (PST) +Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) + by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 29C0520B63 + for ; Sat, 28 Jan 2012 09:16:59 -0500 (EST) +Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) + by compute5.internal (MEProxy); Sat, 28 Jan 2012 09:16:59 -0500 +DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= + date:from:to:subject:message-id:references:mime-version + :content-type:in-reply-to; s=mesmtp; bh=RyM68IU4qgvKAfDKYDglACTl + Kso=; b=PoIaYDXQZt03NVPKKmyx+MNBBner+Uix9PdLHBgQejdpXnfAiExtn5i1 + HNkf0TMRCiMDLan2ooFDjfps78FWbk+mYMe2wQFI5FRCACvIXrSxWyQdyEKQpAt1 + M1vlBvKVfGityjnuFNQ2gUcd0Vw7/qfi0H+gHJifWAw0QNaisvU= +DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= + messagingengine.com; h=date:from:to:subject:message-id + :references:mime-version:content-type:in-reply-to; s=smtpout; + bh=RyM68IU4qgvKAfDKYDglACTlKso=; b=aCPB1fSia6hREOUWajtx8GKSGFQr + NNXhEXRWSNV72hhBT0WV0TEvx15UsSZNQsoyNB6cmIfffz2fX7nuiiSFW8Jyz+5j + em3KKZILwbvGu9C+bZu9jb0cRXVaocCeAuuq4jK0lI/3DZhA+L5RKPZ3PMPnFyTP + yfVLhAb/pNcmLtk= +X-Sasl-enc: 3cKl9fK/Tk6iym350D29CwSEYumbCa2/aqpq0oL3jrcV 1327760218 +Received: from localhost (connect.tuebingen.mpg.de [192.124.26.250]) + by mail.messagingengine.com (Postfix) with ESMTPSA id A661C8E00B6 + for ; Sat, 28 Jan 2012 09:16:58 -0500 (EST) +Date: Sat, 28 Jan 2012 15:16:57 +0100 +From: Fabio Zanini +To: notmuch@notmuchmail.org +Subject: Re: [PATCH 2/2] added support for user-specified directories to + exclude +Message-ID: <20120128141657.GA1738@X200> +References: <8762g0sj6f.fsf@praet.org> + <1327572718-13411-1-git-send-email-tomi.ollila@iki.fi> + <1327572718-13411-2-git-send-email-tomi.ollila@iki.fi> + <87pqe6ip6f.fsf@nikula.org> +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf-8 +Content-Disposition: inline +In-Reply-To: +User-Agent: Mutt/1.5.21 (2010-09-15) +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: Sat, 28 Jan 2012 14:17:00 -0000 + +On Fri, Jan 27, 2012 at 12:41:18PM +0200, Tomi Ollila wrote: +> It's easy to combine works together, but more difficult is to choose best +> terminology: database.exclude vs. new.ignore (or something in between or +> totally different). Ideas anyone? + +I would opt for including two mechanisms for ignoring dirs: +- explicit mention in the config file (e.g. under new.ignore); +- check for presence of a file in the dir (e.g. .notmuchignore), much + like mu [1]. + +The second mechanism is useful in case of a large number of folders to +be ignored, as one can simply copy .notmuchignore in all those folders +with a for cycle; listing all of them in the config file would be +cumbersome - and make the config file itself horribly bloated. + +Cheers, +Fabio + +[1] http://code.google.com/p/mu0/