Re: notmuch search --output=files error with AND NOT search terms
authoringo <mail1@2b1.de>
Thu, 11 Jul 2013 08:39:20 +0000 (01:39 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:55:57 +0000 (09:55 -0800)
f2/e7b17710d45b91e9281e741ec5d5f02174c492 [new file with mode: 0644]

diff --git a/f2/e7b17710d45b91e9281e741ec5d5f02174c492 b/f2/e7b17710d45b91e9281e741ec5d5f02174c492
new file mode 100644 (file)
index 0000000..60fcc09
--- /dev/null
@@ -0,0 +1,106 @@
+Return-Path: <mail1@2b1.de>\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 8D580431FAE\r
+       for <notmuch@notmuchmail.org>; Thu, 11 Jul 2013 01:39:26 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.313\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.313 tagged_above=-999 required=5\r
+       tests=[URI_HEX=1.313] 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 R-Ug2bLavtLz for <notmuch@notmuchmail.org>;\r
+       Thu, 11 Jul 2013 01:39:22 -0700 (PDT)\r
+Received: from sam.nabble.com (sam.nabble.com [216.139.236.26])\r
+       (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 5CB4A431FB6\r
+       for <notmuch@notmuchmail.org>; Thu, 11 Jul 2013 01:39:22 -0700 (PDT)\r
+Received: from ben.nabble.com ([192.168.236.152])\r
+       by sam.nabble.com with esmtp (Exim 4.72)\r
+       (envelope-from <mail1@2b1.de>) id 1UxCPI-0006Q5-QX\r
+       for notmuch@notmuchmail.org; Thu, 11 Jul 2013 01:39:20 -0700\r
+Date: Thu, 11 Jul 2013 01:39:20 -0700 (PDT)\r
+From: ingo <mail1@2b1.de>\r
+To: notmuch@notmuchmail.org\r
+Message-ID: <1373531960691-4028438.post@n3.nabble.com>\r
+In-Reply-To: <20130710125911.GA7198@kuru.dyndns-at-home.com>\r
+References: <51DC0A16.5080704@2b1.de> <87mwpvd1fp.fsf@qmul.ac.uk>\r
+       <1373457313852-4028436.post@n3.nabble.com>\r
+       <20130710125911.GA7198@kuru.dyndns-at-home.com>\r
+Subject: Re: notmuch search --output=files    error with AND NOT search terms\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Transfer-Encoding: 7bit\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, 11 Jul 2013 08:39:26 -0000\r
+\r
+Hi Suvayu, \r
+\r
+\r
+Suvayu Ali wrote\r
+> Hi Ingo,\r
+> \r
+> On Wed, Jul 10, 2013 at 04:55:13AM -0700, ingo wrote:\r
+>> Mark Walters wrote\r
+>> > \r
+>> > The most likely cause is that these two messagefiles have the same\r
+>> > message-ids (so in notmuch's view are the same message). Try\r
+>> > \r
+>> > notmuch search --output=messages  folder:1_Personal AND NOT\r
+>> tag:1_Personal\r
+>> > \r
+>> > If you only see one message-id then notmuch thinks there is a single\r
+>> > message\r
+>> > that matches the search. The way notmuch works is that it first finds\r
+>> > which messages match and then prints the requested information for\r
+>> those\r
+>> > messages. So in this case it finds the matching message(s) then prints\r
+>> > all filenames for those matching messages.\r
+>> \r
+>> Hi Mark,\r
+>> \r
+>> thank you for your answer, actually I only get one single message id, the\r
+>> one I get without using --output=files.\r
+>> \r
+>> notmuch search --output=messages  folder:1_Personal AND NOT\r
+>> tag:1_Personal \r
+>> id:\r
+\r
+> f76b9be792c46795945e1486ccb2b2ab@.kikidan\r
+\r
+> \r
+> Doesn't that confirm Mark's explanation?  Notmuch sees multiple files\r
+> associated to the same message (identified by the message id).\r
+\r
+Yes, you are right, don't know where I had my head when answering. \r
+\r
+And both mails have the same message-id in the message header. \r
+\r
+Still, only one of both files really should be found with this search, so\r
+why is the out put different?\r
+\r
+\r
+Kind regards,\r
+\r
+Ingo \r
+\r
+\r
+\r
+--\r
+View this message in context: http://notmuch.198994.n3.nabble.com/notmuch-search-output-files-error-with-AND-NOT-search-terms-tp4028432p4028438.html\r
+Sent from the notmuch mailing list archive at Nabble.com.\r