[PATCH v2 13/14] cli/reply: pass gmime message to munge detection
[notmuch-archives.git] / b8 / 830ad92d6a5b4cc8555a98c8b3f556ca93dbd3
1 Return-Path: <david@tethera.net>\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 arlo.cworth.org (Postfix) with ESMTP id 08F996DE0243\r
6  for <notmuch@notmuchmail.org>; Tue,  5 Apr 2016 18:52:33 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.02\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.02 tagged_above=-999 required=5 tests=[AWL=-0.009,\r
12   SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id jl9omuCsEOpl for <notmuch@notmuchmail.org>;\r
16  Tue,  5 Apr 2016 18:52:25 -0700 (PDT)\r
17 Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
18  by arlo.cworth.org (Postfix) with ESMTPS id 0BD0C6DE01F7\r
19  for <notmuch@notmuchmail.org>; Tue,  5 Apr 2016 18:52:24 -0700 (PDT)\r
20 Received: from remotemail by fethera.tethera.net with local (Exim 4.84)\r
21  (envelope-from <david@tethera.net>)\r
22  id 1anceQ-0005T3-DU; Tue, 05 Apr 2016 21:52:58 -0400\r
23 Received: (nullmailer pid 22103 invoked by uid 1000);\r
24  Wed, 06 Apr 2016 01:52:22 -0000\r
25 From: David Bremner <david@tethera.net>\r
26 To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>,\r
27  Notmuch Mail <notmuch@notmuchmail.org>\r
28 Subject: Re: [PATCH v2 4/7] Add internal functions to search for alternate doc\r
29  types\r
30 In-Reply-To: <1459606541-23889-4-git-send-email-dkg@fifthhorseman.net>\r
31 References: <1459445693-3900-1-git-send-email-dkg@fifthhorseman.net>\r
32  <1459606541-23889-1-git-send-email-dkg@fifthhorseman.net>\r
33  <1459606541-23889-4-git-send-email-dkg@fifthhorseman.net>\r
34 User-Agent: Notmuch/0.21+74~g6c60fb1 (http://notmuchmail.org) Emacs/24.5.1\r
35  (x86_64-pc-linux-gnu)\r
36 Date: Tue, 05 Apr 2016 22:52:22 -0300\r
37 Message-ID: <87shyzfqqx.fsf@zancas.localnet>\r
38 MIME-Version: 1.0\r
39 Content-Type: text/plain\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.20\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44  <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
46  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
51  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Wed, 06 Apr 2016 01:52:33 -0000\r
53 \r
54 Daniel Kahn Gillmor <dkg@fifthhorseman.net> writes:\r
55 \r
56 > Publicly we are only exposing the non-ghost documents (of "type"\r
57 > "mail").  But internally we might want to inspect the ghost messages\r
58 > as well.\r
59 >\r
60 > This changeset adds two new private interfaces to queries to recover\r
61 > information about alternate document types.\r
62 > ---\r
63 >  lib/notmuch-private.h | 10 ++++++++++\r
64 >  lib/query.cc          | 18 ++++++++++++++++--\r
65 >  2 files changed, 26 insertions(+), 2 deletions(-)\r
66 >\r
67 > diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h\r
68 > index 5dd4770..cbfc144 100644\r
69 > --- a/lib/notmuch-private.h\r
70 > +++ b/lib/notmuch-private.h\r
71 > @@ -477,6 +477,16 @@ void\r
72 >  _notmuch_doc_id_set_remove (notmuch_doc_id_set_t *doc_ids,\r
73 >                              unsigned int doc_id);\r
74 >  \r
75 > +notmuch_status_t\r
76 > +_notmuch_query_search_messages_type_st (notmuch_query_t *query,\r
77 > +                                     const char *type,\r
78 > +                                     notmuch_messages_t **out);\r
79 > +\r
80 > +notmuch_status_t\r
81 > +_notmuch_query_count_messages_type_st (notmuch_query_t *query,\r
82 > +                                    const char *type,\r
83 > +                                    unsigned *count_out);\r
84 \r
85 I was wondering if we should follow Xapian nomenclature and call these functions\r
86 \r
87 _notmuch_query_{search, count}_documents\r
88 \r
89 This assumes only going with the status returning versions\r