1 Return-Path: <eg@gaute.vetsj.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 13496431FC2
\r
6 for <notmuch@notmuchmail.org>; Sat, 6 Dec 2014 14:39:08 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id IqUgIpHvx6SB for <notmuch@notmuchmail.org>;
\r
16 Sat, 6 Dec 2014 14:39:04 -0800 (PST)
\r
17 Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com
\r
18 [209.85.212.170]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id D785C431FBC
\r
21 for <notmuch@notmuchmail.org>; Sat, 6 Dec 2014 14:39:03 -0800 (PST)
\r
22 Received: by mail-wi0-f170.google.com with SMTP id bs8so4281369wib.3
\r
23 for <notmuch@notmuchmail.org>; Sat, 06 Dec 2014 14:39:01 -0800 (PST)
\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
25 d=1e100.net; s=20130820;
\r
26 h=x-gm-message-state:date:from:subject:to:references:in-reply-to
\r
27 :user-agent:message-id:mime-version:content-type
\r
28 :content-transfer-encoding;
\r
29 bh=ZWwARO4dQJj0bmvqgpiaQ8Ma0PxZm95FYVhrojkhw0c=;
\r
30 b=jj4sk5EQm0BUKk1kEnfNzuPwFSHh8GCLZI3DbswPpaaiZwfShL4MkA+3v52YZMaplx
\r
31 1lbxR47uN23m/j568t6oOW2PzHjqC556RWoExL6YEXNpzI/XvPMxffYGKMYx/JM8dH8I
\r
32 3C9KPVHX/oZZFnUBFUMKAez77bbn72ZJgE0kkzTgpABAQyDz4mTrZmg+NbIZTD4UzKHb
\r
33 //B3b/7uXtRu4UneGhtItxcUA7btLKn2zWVefDedfNfvCehmcnXp/22K8j+PipRktL01
\r
34 Bozkmsh3QkDCnbRv98NSXgPMJtg/9PYZuKoMK2lbdong36xefJ1dKfcm3OjecbGBRpRn
\r
37 ALoCoQnU7K+j7mhkNQe3zlmW9VeIKnM2ya7FpIrMpNdFZI4se15nYLvnEh67iJnJfAl4yRc9et97
\r
38 X-Received: by 10.180.228.72 with SMTP id sg8mr13900798wic.48.1417905540293;
\r
39 Sat, 06 Dec 2014 14:39:00 -0800 (PST)
\r
40 Received: from localhost (216.89-20-249.enivest.net. [89.20.249.216])
\r
41 by mx.google.com with ESMTPSA id bj3sm3447645wib.3.2014.12.06.14.38.58
\r
42 for <notmuch@notmuchmail.org>
\r
43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
\r
44 Sat, 06 Dec 2014 14:38:59 -0800 (PST)
\r
45 Date: Sat, 06 Dec 2014 22:39:39 +0000
\r
46 From: Gaute Hope <eg@gaute.vetsj.com>
\r
47 Subject: notmuch_query_add_tag_excluded and notmuch_query_search_threads
\r
48 To: notmuch@notmuchmail.org
\r
51 User-Agent: astroid/vv0.1-10-gd8f012e1 (https://github.com/gauteh/astroid)
\r
52 Message-Id: <1417905319-astroid-0-i86er7iwg5-10728@strange>
\r
54 Content-Type: text/plain; charset=utf-8; format=flowed
\r
55 Content-Transfer-Encoding: quoted-printable
\r
56 X-BeenThere: notmuch@notmuchmail.org
\r
57 X-Mailman-Version: 2.1.13
\r
59 List-Id: "Use and development of the notmuch mail system."
\r
60 <notmuch.notmuchmail.org>
\r
61 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
62 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
63 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
64 List-Post: <mailto:notmuch@notmuchmail.org>
\r
65 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
66 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
67 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
68 X-List-Received-Date: Sat, 06 Dec 2014 22:39:08 -0000
\r
72 I can't quite figure out how to make excluded threads show up in
\r
73 searches explicitly including the tag.
\r
75 If I add the 'muted' tag to all messages in a thread, and set up my
\r
79 notmuch_query_t * query =3D notmuch_query_create (nm_db,
\r
81 notmuch_query_add_tag_exclude (query, "muted");
\r
82 notmuch_query_set_omit_excluded (query, NOTMUCH_EXCLUDE_TRUE);
\r
83 threads =3D notmuch_query_search_threads (query);
\r
85 I would expect to have the thread matching, I get nothing however. It
\r
86 does show up in: $ notmuch search tag:muted (muted added to excluded
\r
87 tags), but does notmuch search operate with
\r
88 notmuch_query_search_messages?=20
\r