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