Re: exclude tags
authorKushal Kumaran <kushal.kumaran+notmuch@gmail.com>
Fri, 16 May 2014 17:57:07 +0000 (23:27 +0530)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:02:51 +0000 (10:02 -0800)
45/913ef850ac44d73712c223f82da37552dddf27 [new file with mode: 0644]

diff --git a/45/913ef850ac44d73712c223f82da37552dddf27 b/45/913ef850ac44d73712c223f82da37552dddf27
new file mode 100644 (file)
index 0000000..7549080
--- /dev/null
@@ -0,0 +1,122 @@
+Return-Path: <kushal.kumaran+notmuch@gmail.com>\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 0DB2D431FBC\r
+       for <notmuch@notmuchmail.org>; Fri, 16 May 2014 10:57:23 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 gbmV93NtreRV for <notmuch@notmuchmail.org>;\r
+       Fri, 16 May 2014 10:57:18 -0700 (PDT)\r
+Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com\r
+       [209.85.216.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id CB501431FB6\r
+       for <notmuch@notmuchmail.org>; Fri, 16 May 2014 10:57:18 -0700 (PDT)\r
+Received: by mail-qc0-f181.google.com with SMTP id m20so4891920qcx.12\r
+       for <notmuch@notmuchmail.org>; Fri, 16 May 2014 10:57:18 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=sender:from:to:subject:in-reply-to:references:user-agent:date\r
+       :message-id:mime-version:content-type;\r
+       bh=2zvUQ4cz1IXCwf4UZJntOqa1m1BKwjLOfDQ4LhLkuqg=;\r
+       b=Pqi1YAFBMOt8GoQh2bddcfKmwD1quTtQy2Kvykc2CQ5wofUy/+ylXfoxWztrebG/tq\r
+       H/lIYrQhU4+sTFLfsjpuTqeoWy/bdTD+yYY2YEASZRgc7JaygX81cOvUiLD3nC5vQ49F\r
+       lXwbNKZvSsk+kIW3D9D2Aw1qO9sie3xXfzoRkwdI++ZUinRTr5/Qg4zAKY+ICMgxpUZ5\r
+       tsr9e81TzVq++f7BEnqzI57mhwhysTD5jkTum7V+UkOhH1pCJZ/gbj/YnMdbJQ/rmSVT\r
+       97qTgXbMjN+2vfm/6Kq1SgeOwpQgpqt8ycn3GS55eaylrKp5llncCUOi510nz41th5T7\r
+       fiMA==\r
+X-Received: by 10.140.31.196 with SMTP id f62mr26227803qgf.59.1400263038176;\r
+       Fri, 16 May 2014 10:57:18 -0700 (PDT)\r
+Received: from magnesium ([198.199.83.138])\r
+       by mx.google.com with ESMTPSA id g8sm5536086qgf.43.2014.05.16.10.57.16\r
+       for <notmuch@notmuchmail.org>\r
+       (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);\r
+       Fri, 16 May 2014 10:57:16 -0700 (PDT)\r
+X-Google-Original-Message-ID: <874n0py5cc.fsf@carbon.locationd.net.>\r
+Sender: Kushal Kumaran <kushal.kumaran@gmail.com>\r
+Received: by magnesium (Postfix, from userid 1000)\r
+       id 8951B4C2BF; Fri, 16 May 2014 23:27:15 +0530 (IST)\r
+From: Kushal Kumaran <kushal.kumaran+notmuch@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: Re: exclude tags\r
+In-Reply-To: <w52c61l5abrh.fsf@gaea.mtv.corp.google.com>\r
+References: <w52c61l5abrh.fsf@gaea.mtv.corp.google.com>\r
+User-Agent: Notmuch/0.17+251~g8ecc7db (http://notmuchmail.org) Emacs/24.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Fri, 16 May 2014 23:27:07 +0530\r
+Message-ID: <5376517c.086b8c0a.bb5f.fffff90d@mx.google.com>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\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: Fri, 16 May 2014 17:57:23 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+Wael Nasreddine <wael.nasreddine@gmail.com> writes:\r
+\r
+> Hey guys,\r
+>\r
+> I am trying to exclude any thread that has the tag *killed* but it's\r
+> either a bug or something that I am simply doing wrong.\r
+>\r
+>  $ notmuch search tag:work and tag:unread and tag:inbox and not tag:kille=\r
+d | grep 'killed' | wc -l\r
+>  1\r
+>\r
+> I am getting the same result with Trusty shipped notmuch v0.17 and with\r
+> today's build.\r
+>\r
+\r
+Search works by matching messages.  So if you have a thread with at\r
+least one message which does not have that tag, that thread will still\r
+show up in a "not tag:killed" search.\r
+\r
+The way I maintain killed threads is to search for tag:killed, and then\r
+call notmuch tag -inbox -unread for all those threads.  Here's my code\r
+to do this:\r
+\r
+ # killed threads\r
+ for th in $(notmuch search --output=3Dthreads -- tag:killed); do\r
+     notmuch tag -inbox -unread -new -- $th\r
+ done\r
+\r
+=2D-=20\r
+regards,\r
+kushal\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1\r
+\r
+iQEcBAEBAgAGBQJTdlFzAAoJEKolkdITDqLtUaIH/3Jqj/Yon2/jQwZ/j9oQBR6G\r
+RKVkkxKYUL9nsO8Kb5E4+h4EOwMkMx7tWe3PxJrD3iYb07FZ04EmqxLxgWjADHsf\r
+l+lXuQ9yJs0/HqxkCASkgDJF1bP0ASgL1ecGpSKgXqvPpH5vSNvcRUjFahRw88dB\r
+HcJfbCr7FYGgfDYDEXc2vF8j4pvSpCYTQmC8ByHowDh/OOUe/kgtO5E8tQ/WgNTn\r
+GJLdcUUtntDV8dvEyMR6/vEm2d99ISSjuwgLtZwt68gd+yu8eQHFZX9+2FxeORnO\r
+Rlgci6UccQLSysJmISBVLymJ2BNjdsGMhYXviy6eds30pPjgzTq64Kyj0FgO4M0=\r
+=gNVt\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r