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 05721431FC0 for ; Tue, 27 May 2014 23:12:52 -0700 (PDT) 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 wFvvCV+hH8ur for ; Tue, 27 May 2014 23:12:47 -0700 (PDT) Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 681C5431FB6 for ; Tue, 27 May 2014 23:12:47 -0700 (PDT) Received: by mail-wg0-f42.google.com with SMTP id y10so10364258wgg.25 for ; Tue, 27 May 2014 23:12:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-type; bh=13/64L0VR19AkxUvT80hNbXSsKxgKAftiRn69dlxGGA=; b=jPpaFIa/MnGy5pxkgCJztQVjAxnehtHi3a+Jg7mZSsfSgy2CImjSUzzXkzSjTWy6KO 80ZoUeiDzQgR0NWOsYb9LRAk7Ps4dc7l6cViQ7me8ODEfUj45EL5GHVO2irOF8NutRuS nazqKXKTkLgoSLqzppZnbWsYl7Y/130QRtdyn6Q6P/71alcGVpp+n/I2p8+KEwNoCWu9 kUp3Z5iO3709W4n6LWXVPxn3nZXG191mPNQ8wGtgr7VcDnW2d0iHrZ/QygHhiAlF0n47 JCdBSUbuC9HCD6Vm45jw4rWj4ZHlcCsGqk5UHf7OgV4/JmRg798MWP4RtN6Wv7xXvw3v /XZQ== X-Gm-Message-State: ALoCoQnEkG01e5U4idFOFT68t5hO+OVAa2ML0dwmdt/cLqv5zlyKE1YjUT/vYOnAL8aQpUEYssdV X-Received: by 10.194.240.129 with SMTP id wa1mr25821105wjc.11.1401257563883; Tue, 27 May 2014 23:12:43 -0700 (PDT) Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi. [88.195.111.91]) by mx.google.com with ESMTPSA id vm8sm40616729wjc.27.2014.05.27.23.12.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 May 2014 23:12:43 -0700 (PDT) From: Jani Nikula To: Wael Nasreddine , notmuch Subject: Re: Usage of tag:replied In-Reply-To: References: User-Agent: Notmuch/0.18~rc0+2~gbc64cdc (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) Date: Wed, 28 May 2014 09:12:40 +0300 Message-ID: <87ha4aig87.fsf@nikula.org> MIME-Version: 1.0 Content-Type: text/plain 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, 28 May 2014 06:12:52 -0000 On Wed, 28 May 2014, Wael Nasreddine wrote: > I'm trying to take advantage of the tag:replied to give higher priority > to emails sent to very busy lists but it seems that it's not returning > the results that I am expecting. > > $ notmuch search tag:unread AND from:lydia > thread:000000000001a791 Today 17:20 [1/10] Lydia | Wael Nasreddine; ... (inbox replied unread work) > $ notmuch search tag:unread AND tag:replied > > As you can see in the snippet above, I do have an email that has both > tags *unread* and *replied* but when I query for both, it does not > find that email (it does not find anything for that matters). > > What am I doing wrong? Notmuch searches are message based. You don't have messages that have both unread and replied tags. The default output for notmuch search is thread summary, which includes combined tags of all messages in that thread. You have unread and replied in different messages in the same thread. BR, Jani.