Re: notmuch_thread_get_authors
[notmuch-archives.git] / 74 / 56726e1cabb2ba117926d1f3bc59f09987afe7
1 Return-Path: <chevalier.ronny@gmail.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 arlo.cworth.org (Postfix) with ESMTP id 8EA846DE13EA\r
6  for <notmuch@notmuchmail.org>; Tue, 21 Apr 2015 05:22:10 -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.239\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.239 tagged_above=-999 required=5 tests=[AWL=0.581,\r
12   DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001,\r
13  RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01,\r
14  SPF_PASS=-0.001] autolearn=disabled\r
15 Received: from arlo.cworth.org ([127.0.0.1])\r
16  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
17  with ESMTP id LlrCLHrLb0ZU for <notmuch@notmuchmail.org>;\r
18  Tue, 21 Apr 2015 05:22:08 -0700 (PDT)\r
19 Received: from mail-oi0-f51.google.com (mail-oi0-f51.google.com\r
20  [209.85.218.51])\r
21  by arlo.cworth.org (Postfix) with ESMTPS id 1AE3A6DE0AC2\r
22  for <notmuch@notmuchmail.org>; Tue, 21 Apr 2015 05:22:08 -0700 (PDT)\r
23 Received: by oica37 with SMTP id a37so148553987oic.0\r
24  for <notmuch@notmuchmail.org>; Tue, 21 Apr 2015 05:22:07 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26  h=mime-version:in-reply-to:references:date:message-id:subject:from:to\r
27  :cc:content-type;\r
28  bh=WKJ92D6kBa8x3vfZ+mz65JHb1i4VqGWyDEZzLk1ko+0=;\r
29  b=M+fRfai4U02kEM+6rjWcHnlv8ssee+4wxHEjhX8OHdQrTTskdHK99s9ZfXlRv7O4qh\r
30  Muw0qDbLY8HrU7+mL4tdpg3FzdFA8fxa06RI1dvcSVapj4mjH93mh3FcRPB4lc7WdVOV\r
31  5tryJMsNQ7Ufkcv+mgRwLPBgeQYsPBNz9LVF1OchPXFuCILyvfe8uYg2RUOvpDXZFoCN\r
32  PHimeTN4G84NnHgS3hA+1MANEkYteLU9iJIR2adY6eAJLZwr4pkAcL+sOb7yJdTEszlV\r
33  5pQkG6OPeKzPjhwAcUlcElfAd5po8PH4htE5HqRZDO7M41dwS1O41drchYINsQcp8Dqo\r
34  EXvg==\r
35 MIME-Version: 1.0\r
36 X-Received: by 10.202.64.195 with SMTP id n186mr17614843oia.53.1429618927246; \r
37  Tue, 21 Apr 2015 05:22:07 -0700 (PDT)\r
38 Received: by 10.202.216.5 with HTTP; Tue, 21 Apr 2015 05:22:07 -0700 (PDT)\r
39 In-Reply-To: <87618qfk5l.fsf@maritornes.cs.unb.ca>\r
40 References:\r
41  <CABPZE7L5yX3tJH+1vMotxL7BHYoQd2BJSbzFuKTAxHgC5+6RHA@mail.gmail.com>\r
42  <87618qfk5l.fsf@maritornes.cs.unb.ca>\r
43 Date: Tue, 21 Apr 2015 14:22:07 +0200\r
44 Message-ID:\r
45  <CABPZE7JGzfSMWKpxKqJeCbpsDhX4xj_HoNoKFL8MbYv9xYpQ7w@mail.gmail.com>\r
46 Subject: Re: notmuch_thread_get_authors\r
47 From: Ronny Chevalier <chevalier.ronny@gmail.com>\r
48 To: David Bremner <david@tethera.net>\r
49 Content-Type: text/plain; charset=UTF-8\r
50 Cc: notmuch@notmuchmail.org\r
51 X-BeenThere: notmuch@notmuchmail.org\r
52 X-Mailman-Version: 2.1.18\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: Tue, 21 Apr 2015 12:22:10 -0000\r
64 \r
65 On Tue, Apr 21, 2015 at 1:35 AM, David Bremner <david@tethera.net> wrote:\r
66 > Ronny Chevalier <chevalier.ronny@gmail.com> writes:\r
67 >\r
68 >> Hi,\r
69 >>\r
70 >> I would like to know the reason behind the way we get authors from a\r
71 >> thread, with notmuch_thread_get_authors.\r
72 >>\r
73 >\r
74 > there is some related patches/discussion at\r
75 >\r
76 > http://thread.gmane.org/gmane.mail.notmuch.general/19422\r
77 \r
78 Ok thanks.\r
79 \r
80 Since I just subscribed to the mailing list, I can't reply to this the\r
81 thread so I reply here.\r
82 \r
83 Austin Clements wrote:\r
84 > And I think there's a fairly easy way to do it in C code that will\r
85 > also prevent library interface bloat: instead of introducing new\r
86 > library APIs to get at this information, just use the existing\r
87 > notmuch_thread_get_messages API and construct the matched and\r
88 > non-matched lists in the CLI.  Doing it in the CLI wouldn't require\r
89 > the library to export yet another string list structure, which is\r
90 > always a huge pain (thanks C!), and wouldn't introduce more "helper"\r
91 > functions into the library API.\r
92 \r
93 I disagree with what Austin said. Because this does not solve the\r
94 issue at all (or I misunderstood). The issue is with the notmuch API,\r
95 if someone is using this library there no way it can parse properly\r
96 the authors.\r
97 In my case I am not using the CLI but the notmuch library, fixing this\r
98 in the CLI is just an hack, and it does not fix the issue for the\r
99 library users.\r
100 \r
101 Furthermore, I do not see why providing a string list NULL-terminated\r
102 in C is a huge pain?\r
103 \r
104 Otherwise, I agree with Mark Walters comments on the patch.\r
105 \r
106 If no one is working to fix this at the moment, I can send a patch?\r
107 \r
108 Ronny\r