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 0FBD6431FD0 for ; Tue, 10 Jan 2012 21:03:30 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[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 4D8LAhVXk9wx for ; Tue, 10 Jan 2012 21:03:29 -0800 (PST) Received: from dmz-mailsec-scanner-6.mit.edu (DMZ-MAILSEC-SCANNER-6.MIT.EDU [18.7.68.35]) by olra.theworths.org (Postfix) with ESMTP id BB3CB431FB6 for ; Tue, 10 Jan 2012 21:03:28 -0800 (PST) X-AuditID: 12074423-b7f9c6d0000008c3-fd-4f0d182078cd Received: from mailhub-auth-3.mit.edu ( [18.9.21.43]) by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP id 35.6E.02243.0281D0F4; Wed, 11 Jan 2012 00:03:28 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id q0B53RvU012425; Wed, 11 Jan 2012 00:03:27 -0500 Received: from drake.mit.edu (209-6-116-242.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com [209.6.116.242]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q0B53NMY017195 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Wed, 11 Jan 2012 00:03:27 -0500 (EST) Received: from amthrax by drake.mit.edu with local (Exim 4.77) (envelope-from ) id 1RkqLK-0005dN-Mk; Wed, 11 Jan 2012 00:03:22 -0500 From: Austin Clements To: notmuch@notmuchmail.org Subject: [PATCH 0/3] Automatic tag-based exclusion Date: Wed, 11 Jan 2012 00:02:50 -0500 Message-Id: <1326258173-21163-1-git-send-email-amdragon@mit.edu> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <20120109043101.GH20796@mit.edu> References: <20120109043101.GH20796@mit.edu> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLIsWRmVeSWpSXmKPExsUixCmqrasgwetvcPWuoMX1mzOZHRg9nq26 xRzAGMVlk5Kak1mWWqRvl8CVMfHbR+aCOcwVN/69ZWpgPMnUxcjBISFgInFzvl8XIyeQKSZx 4d56ti5GLg4hgX2MEs3du9lBEkICGxglfjxmgkjcZ5KYv3EZlDOfUWLDot3MIFVsAhoS2/Yv ZwSxRQSkJXbenc0KsoFZQETi3UwmkLCwgJFE85W7bCA2i4CqxJHeH2CtvAIOElP+32WGuEJB 4tzqc2CLOQV0JW5suMcCcYSOxMmfq1knMPIvYGRYxSibklulm5uYmVOcmqxbnJyYl5dapGum l5tZopeaUrqJERQy7C7KOxj/HFQ6xCjAwajEw2uQyuMvxJpYVlyZe4hRkoNJSZS3T4zXX4gv KT+lMiOxOCO+qDQntfgQowQHs5IIr2IWUDlvSmJlVWpRPkxKmoNFSZxXQ+udn5BAemJJanZq akFqEUxWhoNDSYL3NMhQwaLU9NSKtMycEoQ0EwcnyHAeoOFV4kA1vMUFibnFmekQ+VOMuhzX G+eeYxRiycvPS5US5xUHKRIAKcoozYObA4v1V4ziQG8J8zYLA1XxANME3KRXQEuYgJZsWQfy QXFJIkJKqoHRqXjx7Khrr9YUe3yaU8ufkBic/z+oSHDWjwlbz62uDnFadYKxKehTS7DydJbH FjvW7uWexrgiqUcl/QNTdU3L6oAK2/VMzxM6ipSqbFbXtsk48Cw+uvle4sV17i5/HZu4o0/5 veldxja5bIahTO10m+ATm68H9TZfSfi399vjXaemdM+6dnWREktxRqKhFnNRcSIALtgSr9AC AAA= 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, 11 Jan 2012 05:03:30 -0000 This implements essentially the same idea as Jamie's patch, but does it in the library/CLI and operates on the parsed query rather than using an ad hoc regexp. Which tags are automatically excluded is set in the config file and defaults to "deleted" and "spam". My comment for the config file is clunky. I'd love suggestions for improvements. The first patch can be applied without the other two.