--- /dev/null
+Return-Path: <eg@gaute.vetsj.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 13496431FC2\r
+ for <notmuch@notmuchmail.org>; Sat, 6 Dec 2014 14:39:08 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[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 IqUgIpHvx6SB for <notmuch@notmuchmail.org>;\r
+ Sat, 6 Dec 2014 14:39:04 -0800 (PST)\r
+Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com\r
+ [209.85.212.170]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id D785C431FBC\r
+ for <notmuch@notmuchmail.org>; Sat, 6 Dec 2014 14:39:03 -0800 (PST)\r
+Received: by mail-wi0-f170.google.com with SMTP id bs8so4281369wib.3\r
+ for <notmuch@notmuchmail.org>; Sat, 06 Dec 2014 14:39:01 -0800 (PST)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:date:from:subject:to:references:in-reply-to\r
+ :user-agent:message-id:mime-version:content-type\r
+ :content-transfer-encoding;\r
+ bh=ZWwARO4dQJj0bmvqgpiaQ8Ma0PxZm95FYVhrojkhw0c=;\r
+ b=jj4sk5EQm0BUKk1kEnfNzuPwFSHh8GCLZI3DbswPpaaiZwfShL4MkA+3v52YZMaplx\r
+ 1lbxR47uN23m/j568t6oOW2PzHjqC556RWoExL6YEXNpzI/XvPMxffYGKMYx/JM8dH8I\r
+ 3C9KPVHX/oZZFnUBFUMKAez77bbn72ZJgE0kkzTgpABAQyDz4mTrZmg+NbIZTD4UzKHb\r
+ //B3b/7uXtRu4UneGhtItxcUA7btLKn2zWVefDedfNfvCehmcnXp/22K8j+PipRktL01\r
+ Bozkmsh3QkDCnbRv98NSXgPMJtg/9PYZuKoMK2lbdong36xefJ1dKfcm3OjecbGBRpRn\r
+ +0Fw==\r
+X-Gm-Message-State:\r
+ ALoCoQnU7K+j7mhkNQe3zlmW9VeIKnM2ya7FpIrMpNdFZI4se15nYLvnEh67iJnJfAl4yRc9et97\r
+X-Received: by 10.180.228.72 with SMTP id sg8mr13900798wic.48.1417905540293;\r
+ Sat, 06 Dec 2014 14:39:00 -0800 (PST)\r
+Received: from localhost (216.89-20-249.enivest.net. [89.20.249.216])\r
+ by mx.google.com with ESMTPSA id bj3sm3447645wib.3.2014.12.06.14.38.58\r
+ for <notmuch@notmuchmail.org>\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Sat, 06 Dec 2014 14:38:59 -0800 (PST)\r
+Date: Sat, 06 Dec 2014 22:39:39 +0000\r
+From: Gaute Hope <eg@gaute.vetsj.com>\r
+Subject: notmuch_query_add_tag_excluded and notmuch_query_search_threads\r
+To: notmuch@notmuchmail.org\r
+References: \r
+In-Reply-To: \r
+User-Agent: astroid/vv0.1-10-gd8f012e1 (https://github.com/gauteh/astroid)\r
+Message-Id: <1417905319-astroid-0-i86er7iwg5-10728@strange>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=utf-8; format=flowed\r
+Content-Transfer-Encoding: quoted-printable\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: Sat, 06 Dec 2014 22:39:08 -0000\r
+\r
+hi,\r
+\r
+I can't quite figure out how to make excluded threads show up in\r
+searches explicitly including the tag.\r
+\r
+If I add the 'muted' tag to all messages in a thread, and set up my\r
+query as follows:\r
+\r
+\r
+ notmuch_query_t * query =3D notmuch_query_create (nm_db,\r
+ "tag:muted");\r
+ notmuch_query_add_tag_exclude (query, "muted");\r
+ notmuch_query_set_omit_excluded (query, NOTMUCH_EXCLUDE_TRUE);\r
+ threads =3D notmuch_query_search_threads (query);\r
+\r
+I would expect to have the thread matching, I get nothing however. It\r
+does show up in: $ notmuch search tag:muted (muted added to excluded\r
+tags), but does notmuch search operate with\r
+notmuch_query_search_messages?=20\r
+\r
+Regards, Gaute\r
+\r
+=\r