From: Bhaskara Marthi Date: Sat, 11 Feb 2012 06:37:05 +0000 (+1600) Subject: unexpected behavior for search X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=e6cc35208b90bcbe0556ea5602eff972311c90d8;p=notmuch-archives.git unexpected behavior for search --- diff --git a/da/672cbb4185274cd2efd5f01dd013dde05dde36 b/da/672cbb4185274cd2efd5f01dd013dde05dde36 new file mode 100644 index 000000000..7f0552adf --- /dev/null +++ b/da/672cbb4185274cd2efd5f01dd013dde05dde36 @@ -0,0 +1,91 @@ +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 9FD14431FB6 + for ; Fri, 10 Feb 2012 22:37:07 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.798 +X-Spam-Level: +X-Spam-Status: No, score=-0.798 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, 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 3MOVVjt2zWpi for ; + Fri, 10 Feb 2012 22:37:07 -0800 (PST) +Received: from mail-pz0-f53.google.com (mail-pz0-f53.google.com + [209.85.210.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 11358431FAE + for ; Fri, 10 Feb 2012 22:37:06 -0800 (PST) +Received: by dady25 with SMTP id y25so3407151dad.26 + for ; Fri, 10 Feb 2012 22:37:05 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; + h=mime-version:date:message-id:subject:from:to:content-type; + bh=KlJYT0c8nvNkbJHXTvghHGF4h+0MV8N+OH5+h8rPaRQ=; + b=wbXW2pS3ACr8ednhiXpu2+9bk6yfxIVXivMZwkt2UGHQH0FzAiA3pqO9BchvEswBLh + TUvXJzgTJ8sca1qDr+NsL2EVmldkfLiTsOqN5GWGk4twF9lJVggl9HMhYf+2P5bayZhq + RLzB/KzqY5ze50bjFyJx1Qt2RPMcaPS5gjb74= +MIME-Version: 1.0 +Received: by 10.68.219.234 with SMTP id pr10mr24292520pbc.11.1328942225169; + Fri, 10 Feb 2012 22:37:05 -0800 (PST) +Received: by 10.68.0.138 with HTTP; Fri, 10 Feb 2012 22:37:05 -0800 (PST) +Date: Fri, 10 Feb 2012 22:37:05 -0800 +Message-ID: + +Subject: unexpected behavior for search +From: Bhaskara Marthi +To: notmuch@notmuchmail.org +Content-Type: multipart/alternative; boundary=e89a8ff249c3421bc004b8aa7909 +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: Sat, 11 Feb 2012 06:37:08 -0000 + +--e89a8ff249c3421bc004b8aa7909 +Content-Type: text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: quoted-printable + +Either I have the search syntax wrong or there's a bug somewhere. Is this +not how to combine multiple tags? The output of the first invocation shows +that there exist threads tagged both inbox and unread, but the second +invocation does not find them. +- Bhaskara + +$ notmuch search $(date +%s -d 2012-02-09)..$(date +%s) tag:inbox | grep +unread +thread:000000000000ff28 Today 12:41 [3/4] Mac Mason, Bhaskara Marthi; I'm +getting a build failure (inbox unread) +thread:000000000000ec68 Yest. 09:32 [1/6] Gon=E7alo Cabrita| Ken Conley; +[ros-users] serial_communication release (inbox unread) +$ notmuch search tag:inbox and tag:unread +$ + +--e89a8ff249c3421bc004b8aa7909 +Content-Type: text/html; charset=ISO-8859-1 +Content-Transfer-Encoding: quoted-printable + +Either I have the search syntax wrong or there's a bug somewhere.=A0 Is= + this not how to combine multiple tags?=A0 The output of the first invocati= +on shows that there exist threads tagged both inbox and unread, but the sec= +ond invocation does not find them.
+- Bhaskara

$ notmuch search $(date +%s -d 2012-02-09)..$(date +%s) t= +ag:inbox | grep unread
thread:000000000000ff28=A0 Today 12:41 [3/4] Mac = +Mason, Bhaskara Marthi; I'm getting a build failure (inbox unread)
+thread:000000000000ec68=A0 Yest. 09:32 [1/6] Gon=E7alo Cabrita| Ken Conley;= + [ros-users] serial_communication release (inbox unread)
$ notmuch searc= +h tag:inbox and tag:unread
$

+ +--e89a8ff249c3421bc004b8aa7909--