[PATCH v3 4/7] Add internal functions to search for alternate doc types
[notmuch-archives.git] / 4f / 4444f86ad255c4a7f1c1c1eb378957aa0dcbe0
1 Return-Path: <olivier.berger@telecom-sudparis.eu>\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 12FB7431FB6\r
6         for <notmuch@notmuchmail.org>; Thu, 20 Nov 2014 09:11:56 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 LNIHDCAqZMUU for <notmuch@notmuchmail.org>;\r
16         Thu, 20 Nov 2014 09:11:45 -0800 (PST)\r
17 Received: from zproxy120.enst.fr (zproxy120.enst.fr [137.194.52.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id 89DDE431FAE\r
19         for <notmuch@notmuchmail.org>; Thu, 20 Nov 2014 09:11:45 -0800 (PST)\r
20 Received: from localhost (localhost [127.0.0.1])\r
21         by zproxy120.enst.fr (Postfix) with ESMTP id C00DB100ED0;\r
22         Thu, 20 Nov 2014 18:11:39 +0100 (CET)\r
23 Received: from zproxy120.enst.fr ([127.0.0.1])\r
24         by localhost (zproxy120.enst.fr [127.0.0.1]) (amavisd-new, port 10032)\r
25         with ESMTP id DuIWCsAkP5Nt; Thu, 20 Nov 2014 18:11:35 +0100 (CET)\r
26 Received: from localhost (localhost [127.0.0.1])\r
27         by zproxy120.enst.fr (Postfix) with ESMTP id C795B100EEF;\r
28         Thu, 20 Nov 2014 18:11:35 +0100 (CET)\r
29 X-Virus-Scanned: amavisd-new at zproxy120.enst.fr\r
30 Received: from zproxy120.enst.fr ([127.0.0.1])\r
31         by localhost (zproxy120.enst.fr [127.0.0.1]) (amavisd-new, port 10026)\r
32         with ESMTP id FVc5iz3luLpY; Thu, 20 Nov 2014 18:11:35 +0100 (CET)\r
33 Received: from localhost (inf-11879.int-evry.fr [157.159.110.251])\r
34         by zproxy120.enst.fr (Postfix) with ESMTPSA id A6F9A100ED0;\r
35         Thu, 20 Nov 2014 18:11:35 +0100 (CET)\r
36 From: Olivier Berger <olivier.berger@telecom-sudparis.eu>\r
37 To: David Bremner <david@tethera.net>\r
38 Subject: Re: tag:deleted messages immediately deleted ?\r
39 In-Reply-To: <87lhn8fmq9.fsf@maritornes.cs.unb.ca>\r
40 References: <877fyseuq8.fsf@inf-11879.int-evry.fr>\r
41         <87d28ku7rt.fsf@maritornes.cs.unb.ca>\r
42         <871tp0ek8b.fsf@inf-11879.int-evry.fr>\r
43         <87lhn8fmq9.fsf@maritornes.cs.unb.ca>\r
44 User-Agent: Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1\r
45         (x86_64-pc-linux-gnu)\r
46 Date: Thu, 20 Nov 2014 18:11:34 +0100\r
47 Message-ID: <877fypre49.fsf@inf-11879.int-evry.fr>\r
48 MIME-Version: 1.0\r
49 Content-Type: text/plain\r
50 Cc: notmuch@notmuchmail.org\r
51 X-BeenThere: notmuch@notmuchmail.org\r
52 X-Mailman-Version: 2.1.13\r
53 Precedence: list\r
54 List-Id: "Use and development of the notmuch mail system."\r
55         <notmuch.notmuchmail.org>\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
59 List-Post: <mailto:notmuch@notmuchmail.org>\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
63 X-List-Received-Date: Thu, 20 Nov 2014 17:11:56 -0000\r
64 \r
65 Hi.\r
66 \r
67 David Bremner <david@tethera.net> writes:\r
68 \r
69 > Olivier Berger <olivier.berger@telecom-sudparis.eu> writes:\r
70 >>\r
71 >> I'm using a local dovecot as a mail storage backend, which is in turn\r
72 >> indexed my botmuch... any particular thing related to dovecot flags\r
73 >> handling maybe (i.e. deleted tag being passed to dovecot) ?\r
74 >>\r
75 >\r
76 > Nope, we rejected synching the T flag to maildirs for exactly this\r
77 > reason.  I wonder if you have multiple excluded tags on these messages\r
78 > somehow.  If you run "notmuch search --exclude=false tag:deleted" do you\r
79 > get some output? If so, what tags do these messages have?\r
80 >\r
81 \r
82 Yes, I get tons of mails (981 of them ;).\r
83 \r
84 Some only seem to have the deleted tag :\r
85 \r
86  $ notmuch search --exclude=false tag:deleted  | grep '(deleted)' | wc -l\r
87  4\r
88 \r
89 And it seems I can now find some 21 messages by searching for the\r
90 tag:deleted query in emacs :-/\r
91 \r
92 I've checked my .notmuch-config and it contains :\r
93 \r
94  [search]\r
95  exclude_tags=deleted;spam;\r
96 \r
97 So, I've tried and removed the spam tag from the exclude_tags, and\r
98 suddenly, the search in emacs responds with the 981... which means that\r
99 most of the deleted ones had the spam tag too.\r
100 \r
101 \r
102 So it means that if one explicitely requests an excluded tag, other\r
103 exclude tags still apply. Not sure this is the desirable option : maybe\r
104 if one exclusion is waved, then others should too ?\r
105 \r
106 What do you think ?\r
107 \r
108 Best regards,\r
109 -- \r
110 Olivier BERGER \r
111 http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8\r
112 Ingenieur Recherche - Dept INF\r
113 Institut Mines-Telecom, Telecom SudParis, Evry (France)\r