Re: [notmuch] Tag search peculiarities
authorSandra Snan <sandra.snan@handgranat.org>
Thu, 18 Mar 2010 14:27:12 +0000 (15:27 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:24 +0000 (09:36 -0800)
89/c5d9a6aa4234e30845be4873ff4feb1f07d2f1 [new file with mode: 0644]

diff --git a/89/c5d9a6aa4234e30845be4873ff4feb1f07d2f1 b/89/c5d9a6aa4234e30845be4873ff4feb1f07d2f1
new file mode 100644 (file)
index 0000000..95d32b1
--- /dev/null
@@ -0,0 +1,114 @@
+Return-Path: <sandra.snan@handgranat.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 olra.theworths.org (Postfix) with ESMTP id 4072F404964\r
+       for <notmuch@notmuchmail.org>; Thu, 18 Mar 2010 07:25:51 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.491\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.491 tagged_above=-999 required=5 tests=[AWL=0.108,\r
+       BAYES_00=-2.599] autolearn=ham\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 Ljg06fEnnqe9 for <notmuch@notmuchmail.org>;\r
+       Thu, 18 Mar 2010 07:25:50 -0700 (PDT)\r
+Received: from mail-ew0-f210.google.com (mail-ew0-f210.google.com\r
+       [209.85.219.210])\r
+       by olra.theworths.org (Postfix) with ESMTP id DDCF240495F\r
+       for <notmuch@notmuchmail.org>; Thu, 18 Mar 2010 07:25:49 -0700 (PDT)\r
+Received: by ewy2 with SMTP id 2so1276197ewy.0\r
+       for <notmuch@notmuchmail.org>; Thu, 18 Mar 2010 07:25:49 -0700 (PDT)\r
+Received: by 10.213.2.75 with SMTP id 11mr5132904ebi.14.1268922348822;\r
+       Thu, 18 Mar 2010 07:25:48 -0700 (PDT)\r
+Received: from ellen.idiomdrottning.org.handgranat.org ([83.251.93.216])\r
+       by mx.google.com with ESMTPS id 13sm11744ewy.1.2010.03.18.07.25.47\r
+       (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
+       Thu, 18 Mar 2010 07:25:47 -0700 (PDT)\r
+Message-ID: <4ba237eb.0d67f10a.0fba.0105@mx.google.com>\r
+Date: Thu, 18 Mar 2010 15:27:12 +0100\r
+From: Sandra Snan <sandra.snan@handgranat.org>\r
+To: notmuch <notmuch@notmuchmail.org>\r
+User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9\r
+       (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.1 (x86_64-pc-linux-gnu)\r
+       MULE/6.0 (HANACHIRUSATO)\r
+References: <4ba01c54.9298cc0a.66cd.7695@mx.google.com>\r
+In-Reply-To: <4ba01c54.9298cc0a.66cd.7695@mx.google.com>\r
+MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")\r
+Content-Type: text/plain; charset=UTF-8\r
+Content-Transfer-Encoding: quoted-printable\r
+Subject: Re: [notmuch] Tag search peculiarities\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: Thu, 18 Mar 2010 14:25:51 -0000\r
+\r
+Hey, Ben.\r
+Ben Gamari <bgamari.foss@gmail.com> wrote:\r
+> notmuch tag -new tag:new and tag:list notmuch tag -new +inbox tag:new\r
+\r
+Is there a new line between the calls? Like:\r
+notmuch tag -new tag:new and tag:list # removes new from list\r
+notmuch tag -new +inbox tag:new # replaces those that still are new with in=\r
+box\r
+\r
+> However, I found that mailing list traffic was still getting through.\r
+\r
+What do you mean by =E2=80=9Cthrough=E2=80=9D? Do you mean that there still=\r
+ are\r
+messages tagged both inbox and list? Even though you can=E2=80=99t search f=\r
+or\r
+them?\r
+\r
+If a message is tagged both inbox and list, but not new then the two\r
+lines of your script that you posted so far wouldn=E2=80=99t change it, and=\r
+ it\r
+would still bo both inbox and list.\r
+\r
+It=E2=80=99s risky being so dependent on the new tag.\r
+\r
+> After investigating further, I found that any query in the form of "tag:i=\r
+nbox\r
+> and tag:$TAG" would return no results. Strangely, all other combinations =\r
+of tag\r
+> searches (i.e. "tag:lkml and tag:unread") seem to work just fine.\r
+>=20\r
+> Has anyone else noticed this sort of behavior? Does the inbox tag have so=\r
+me\r
+> special signifigance that I should know of?\r
+\r
+Yes, many versions of the reading client (for example, the version of\r
+notmuch.el that ships with the notmuch package in debian) remove the\r
+inbox tag from messages once you scroll past them or when you press\r
+the key that=E2=80=99s bound to notmuch-show-archive-thread (default is =E2=\r
+=80=9Ca=E2=80=9D).\r
+\r
+> Is my index just FUBAR? (the ladder would be very strange\r
+> considering it's only a few days old and I can't think of any\r
+> crashes, etc. that might have corrupted it) Any ideas for debugging?\r
+\r
+Add the tags manually to a few messages, search for them again, and be\r
+sure to not run your tagging script while looking at this problem.\r
+\r
+Michal=E2=80=99s tip, looking at a few lines of notmuch dump, is a good idea\r
+too. Notmuch dump is fast, so don=E2=80=99t be afraid (notmuch restore on t=\r
+he\r
+other hand=E2=80=A6 but even that completes fast enough.)\r
+\r
+I=E2=80=99ve often been surprised at weird tag situations then realized that\r
+it was old versions of my own scripts that had ran in the background\r
+and I=E2=80=99ve forgotten about it.\r
+\r
+Boolean algebra and set theory is tricky stuff! Good luck.\r
+\r
+Sandra\r