[RFC 0/5] globbing on new.ignore etc.
authorJani Nikula <jani@nikula.org>
Tue, 3 Nov 2015 19:49:28 +0000 (21:49 +0200)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:49:58 +0000 (14:49 -0700)
7f/325dbe03e7e503bd8d7cf2515aeb7f022e34c6 [new file with mode: 0644]

diff --git a/7f/325dbe03e7e503bd8d7cf2515aeb7f022e34c6 b/7f/325dbe03e7e503bd8d7cf2515aeb7f022e34c6
new file mode 100644 (file)
index 0000000..722e3ab
--- /dev/null
@@ -0,0 +1,97 @@
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 4C0196DE177D\r
+ for <notmuch@notmuchmail.org>; Tue,  3 Nov 2015 11:50:15 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.541\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.541 tagged_above=-999 required=5 tests=[AWL=0.179,\r
+  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7,\r
+ RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 88sgceFVVnE8 for <notmuch@notmuchmail.org>;\r
+ Tue,  3 Nov 2015 11:50:13 -0800 (PST)\r
+Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com\r
+ [209.85.212.174])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id E58216DE0214\r
+ for <notmuch@notmuchmail.org>; Tue,  3 Nov 2015 11:50:12 -0800 (PST)\r
+Received: by wicfv8 with SMTP id fv8so18892913wic.0\r
+ for <notmuch@notmuchmail.org>; Tue, 03 Nov 2015 11:50:10 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=nikula_org.20150623.gappssmtp.com; s=20150623;\r
+ h=from:to:cc:subject:date:message-id;\r
+ bh=Nj3YDz9gbeyYYjLYx8bcjzAWdK5wBf8VetYnlFs6tfg=;\r
+ b=Hkjl55u1lUreiuZCYyT2qMuhjr415LJVoFRPvfBrJye98UZ19vEAk56AcPgFeDNANy\r
+ mmd9RYRwOGX9nv+iTlpn1XN/+0VmDEk64FLDQ6K5ffk4GXpYbdsqNse7RbctrZk1oPop\r
+ ltW0J/kGaj44KIx2SboBww4DrQ7VpnbuXxbHXLnrGN0eFqqvBrk0Tn++RSUEZ9+mxSnU\r
+ DjSlcD3Ejgldxxju80rL5+N1cNEqgAuQiai2r8AlEG/L4uWa/oJ6tCJHMGHh/57o64ac\r
+ eBXuqP4PGXONq7VbqJUAdz/T8DLTjNFMaLunYAGqqEY10ce91iLe0dwxl3+pviWuECcf\r
+ ICrw==\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:cc:subject:date:message-id;\r
+ bh=Nj3YDz9gbeyYYjLYx8bcjzAWdK5wBf8VetYnlFs6tfg=;\r
+ b=RUDtbIZstfZR0Y/4CDBzbN5HJmJ+ys5vIToWcnT6q4T2N4z0RKjdOnESPVm11qZhp/\r
+ xBwXDIJbJATjezN03zooUoJe5lU+wfTrh8iPHggaDvJTcl7RWHtcj+KiY3mfbiPUrs4J\r
+ emMgQRw/c9YYNRtYrfJ7hykw0x3ZFhVqDPqSvQzeDKeoxP+RRXMFVXvNIpt+q/vO0Hfj\r
+ 7EOeiF8t4a/K86voRfnFy6CH87zVaTbjB+Q6P1OATKUQTIojX4q+S7xn2Y47PhVCZIXM\r
+ 9/vRoNOPydvRmlO0Jy0FVUSinAtZwLJTYD4yhJTUaC+u8HdZYwVnU9EG9eRA0RFvKSnf\r
+ +DSA==\r
+X-Gm-Message-State:\r
+ ALoCoQnb3j4CUcmNX8GNsiqg+SFbSAhd+Ss2FmrHPFA4mYz90sVcMl01xY4Sd+jE5Gtqj9OORg9z\r
+X-Received: by 10.194.123.132 with SMTP id ma4mr30022603wjb.140.1446580209961;\r
+  Tue, 03 Nov 2015 11:50:09 -0800 (PST)\r
+Received: from localhost (mobile-access-bceec0-208.dhcp.inet.fi.\r
+ [188.238.192.208])\r
+ by smtp.gmail.com with ESMTPSA id p75sm24924824wmd.22.2015.11.03.11.50.09\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Tue, 03 Nov 2015 11:50:09 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [RFC 0/5] globbing on new.ignore etc.\r
+Date: Tue,  3 Nov 2015 21:49:28 +0200\r
+Message-Id: <cover.1446579858.git.jani@nikula.org>\r
+X-Mailer: git-send-email 2.1.4\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 03 Nov 2015 19:50:15 -0000\r
+\r
+This series adds globbing support to new.ignore using fnmatch(3). Just\r
+an RFC for starters because it's missing tests and man pages\r
+etc. There's some cleanup patches first, and then 'notmuch config\r
+append' command to make it easier to add new ignores to the list.\r
+\r
+BR,\r
+Jani.\r
+\r
+\r
+Jani Nikula (5):\r
+  cli: fix function name in notmuch new debug logging\r
+  cli: don't call _entry_in_ignore_list twice in count files debug\r
+  cli: support shell globbing patterns in new.ignore\r
+  cli: add notmuch config append command to append to string list\r
+    configs\r
+  cli: print number of ignored non-mails encountered in notmuch new scan\r
+\r
+ notmuch-config.c | 47 +++++++++++++++++++++++++++++++++++++\r
+ notmuch-new.c    | 71 ++++++++++++++++++++++++++++++++++++++------------------\r
+ test/T050-new.sh | 40 +++++++++++++++----------------\r
+ 3 files changed, 115 insertions(+), 43 deletions(-)\r
+\r
+-- \r
+2.1.4\r
+\r