unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Ronny Chevalier <chevalier.ronny@gmail.com>
To: notmuch@notmuchmail.org
Subject: notmuch_thread_get_authors
Date: Mon, 20 Apr 2015 18:04:12 +0200	[thread overview]
Message-ID: <CABPZE7L5yX3tJH+1vMotxL7BHYoQd2BJSbzFuKTAxHgC5+6RHA@mail.gmail.com> (raw)

Hi,

I would like to know the reason behind the way we get authors from a
thread, with notmuch_thread_get_authors.

Getting a string formatted as it is right now make it impossible to
parse properly the authors. If there is an author with | or , in its
name (or email address if there is no name), there is no way to
distinguish between another author in the list comma separated or an
author with a comma, and the same with |.

A function like notmuch_thread_get_authors_arrays(notmuch_thread_t
*thread, char ***authors_matched, char ***authors_not_mached) with
authors_matched and authors_not_mached being string arrays
NULL-terminated could deal with this issue.

What do you think? or maybe I am missing something?

Ronny

             reply	other threads:[~2015-04-20 16:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-20 16:04 Ronny Chevalier [this message]
2015-04-20 23:35 ` notmuch_thread_get_authors David Bremner
2015-04-21 12:22   ` notmuch_thread_get_authors Ronny Chevalier
2015-04-22  1:28     ` notmuch_thread_get_authors Austin Clements
2015-04-22  1:33       ` notmuch_thread_get_authors David Bremner
2015-04-22  2:01       ` notmuch_thread_get_authors Ronny Chevalier
2015-04-22  2:22         ` notmuch_thread_get_authors Austin Clements

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABPZE7L5yX3tJH+1vMotxL7BHYoQd2BJSbzFuKTAxHgC5+6RHA@mail.gmail.com \
    --to=chevalier.ronny@gmail.com \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).