notmuch_thread_get_authors
authorRonny Chevalier <chevalier.ronny@gmail.com>
Mon, 20 Apr 2015 16:04:12 +0000 (18:04 +0200)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:48:50 +0000 (14:48 -0700)
38/af6e91e962272e3bedf00179fd7d15e6768280 [new file with mode: 0644]

diff --git a/38/af6e91e962272e3bedf00179fd7d15e6768280 b/38/af6e91e962272e3bedf00179fd7d15e6768280
new file mode 100644 (file)
index 0000000..34c1d14
--- /dev/null
@@ -0,0 +1,78 @@
+Return-Path: <chevalier.ronny@gmail.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 arlo.cworth.org (Postfix) with ESMTP id 6B3F06DE0AC2\r
+ for <notmuch@notmuchmail.org>; Mon, 20 Apr 2015 09:04:15 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.259\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.259 tagged_above=-999 required=5\r
+ tests=[AWL=-0.541, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
+ DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7,\r
+ RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001,\r
+ TRACKER_ID=1.102] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 8rX0IGBP_O5Y for <notmuch@notmuchmail.org>;\r
+ Mon, 20 Apr 2015 09:04:13 -0700 (PDT)\r
+Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com\r
+ [209.85.218.53])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 54F186DE0AB8\r
+ for <notmuch@notmuchmail.org>; Mon, 20 Apr 2015 09:04:13 -0700 (PDT)\r
+Received: by oign205 with SMTP id n205so129034472oig.2\r
+ for <notmuch@notmuchmail.org>; Mon, 20 Apr 2015 09:04:12 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=mime-version:date:message-id:subject:from:to:content-type;\r
+ bh=qWQNvArYvMFpzHYi8aeKQizsbApdqofzG42bhWkP1mU=;\r
+ b=WqioHlpwxEP/aCMK1ebsVG7y7umUhx/fAMBEYMkv4MjtvaiWaMWTd1+sSgPLBmC2nB\r
+ sShJJPjcGknBm9C77cPfonyurQMWMHPg/GQQRLwRVoy7aO85tFs2K5s+2hNBHPBeHvA3\r
+ Jvu8uvIRl09NPr0cUTJeMAEoFP0ICnBsp/SM6ScQaufkkH+Cr5uCDyPmOBUpGhWrNsgT\r
+ uB9IqrtzHYHYPTGqXiA5GokWpkXL1VKLVfGDxUQjiRWP7aYsbQD2lUCidZM/Lx5Zwc69\r
+ ggq3GzoQEU9FO0K/dz2ZzpVY61GJ/C0xrRnuaG70QEAMwTi927waY1zlyp7885ZvmBdC\r
+ E7jw==\r
+MIME-Version: 1.0\r
+X-Received: by 10.182.137.136 with SMTP id qi8mr14519861obb.51.1429545852325; \r
+ Mon, 20 Apr 2015 09:04:12 -0700 (PDT)\r
+Received: by 10.202.216.5 with HTTP; Mon, 20 Apr 2015 09:04:12 -0700 (PDT)\r
+Date: Mon, 20 Apr 2015 18:04:12 +0200\r
+Message-ID:\r
+ <CABPZE7L5yX3tJH+1vMotxL7BHYoQd2BJSbzFuKTAxHgC5+6RHA@mail.gmail.com>\r
+Subject: notmuch_thread_get_authors\r
+From: Ronny Chevalier <chevalier.ronny@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Content-Type: text/plain; charset=UTF-8\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\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: Mon, 20 Apr 2015 16:04:15 -0000\r
+\r
+Hi,\r
+\r
+I would like to know the reason behind the way we get authors from a\r
+thread, with notmuch_thread_get_authors.\r
+\r
+Getting a string formatted as it is right now make it impossible to\r
+parse properly the authors. If there is an author with | or , in its\r
+name (or email address if there is no name), there is no way to\r
+distinguish between another author in the list comma separated or an\r
+author with a comma, and the same with |.\r
+\r
+A function like notmuch_thread_get_authors_arrays(notmuch_thread_t\r
+*thread, char ***authors_matched, char ***authors_not_mached) with\r
+authors_matched and authors_not_mached being string arrays\r
+NULL-terminated could deal with this issue.\r
+\r
+What do you think? or maybe I am missing something?\r
+\r
+Ronny\r