[PATCH 0/3] Configuration file option to exclude files/directories
authortomi.ollila <tomi.ollila@iki.fi>
Tue, 13 Sep 2011 21:32:01 +0000 (00:32 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:26 +0000 (09:39 -0800)
94/3d0ec1582e0f8704c8b518242819fd1e766e75 [new file with mode: 0644]

diff --git a/94/3d0ec1582e0f8704c8b518242819fd1e766e75 b/94/3d0ec1582e0f8704c8b518242819fd1e766e75
new file mode 100644 (file)
index 0000000..180965f
--- /dev/null
@@ -0,0 +1,72 @@
+Return-Path: <tomi.ollila@iki.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 71E67429E25\r
+       for <notmuch@notmuchmail.org>; Tue, 13 Sep 2011 14:32:11 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id DISrGHAwF3lp for <notmuch@notmuchmail.org>;\r
+       Tue, 13 Sep 2011 14:32:10 -0700 (PDT)\r
+Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 8A413431FB6\r
+       for <notmuch@notmuchmail.org>; Tue, 13 Sep 2011 14:32:10 -0700 (PDT)\r
+Received: from localhost6.localdomain6 (entry3.nixu.fi [193.209.237.21])\r
+       by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id\r
+       p8DLW8G1022252\r
+       for <notmuch@notmuchmail.org>; Wed, 14 Sep 2011 00:32:08 +0300\r
+From: tomi.ollila@iki.fi\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 0/3] Configuration file option to exclude files/directories\r
+Date: Wed, 14 Sep 2011 00:32:01 +0300\r
+Message-Id: <1315949524-4948-1-git-send-email-tomi.ollila@iki.fi>\r
+X-Mailer: git-send-email 1.7.3.4\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 13 Sep 2011 21:32:11 -0000\r
+\r
+This patch set adds a configuration option 'database.exclude'; a list of\r
+files/directories to be excluded when doing 'notmuch new' operation.\r
+\r
+Notes:\r
+\r
+1) Currently the comments for newly created configuration file are not\r
+updated, so for not this is 'undocumented feature'. Should there be an\r
+empty configuration line as a placeholder ... ?\r
+\r
+2) Whenever some already existing directory is added to the exclude list\r
+and the parent directory timestamp has not changed, notmuch new will not\r
+notice the directory has gone (as it still is there), user needs to 'touch'\r
+the parent directory before next 'notmuch new' no make notmuch notice.\r
+\r
+3) count_files() function is not touched. The functionality there has fallen\r
+behind of add_files_recursive (maildir+tmp check and following symlinks).\r
+The question there should it be updated, or attempted to merge with\r
+add_files (as the comment says). count_files() is only called at the beginning\r
+when database is not yet initialised.\r
+\r
+Tomi\r
+\r
+ notmuch-client.h |    3 ++\r
+ notmuch-config.c |   89 +++++++++++++++++++++++++++++++++++++++--------------\r
+ notmuch-new.c    |   22 ++++++++++++-\r
+ 3 files changed, 88 insertions(+), 26 deletions(-)\r
+\r