--- /dev/null
+Return-Path: <jrollins@finestructure.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 96CB0431FCB\r
+ for <notmuch@notmuchmail.org>; Sun, 19 Aug 2012 18:53:10 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id L7SPgE6WMATL for <notmuch@notmuchmail.org>;\r
+ Sun, 19 Aug 2012 18:53:09 -0700 (PDT)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+ [131.215.239.19])\r
+ by olra.theworths.org (Postfix) with ESMTP id 0698A431FBF\r
+ for <notmuch@notmuchmail.org>; Sun, 19 Aug 2012 18:53:08 -0700 (PDT)\r
+Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+ by earth-doxen-postvirus (Postfix) with ESMTP id C5A7C66E00DE\r
+ for <notmuch@notmuchmail.org>; Sun, 19 Aug 2012 18:53:07 -0700 (PDT)\r
+X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
+Received: from finestructure.net (unknown [76.89.192.57])\r
+ (Authenticated sender: jrollins)\r
+ by earth-doxen-submit (Postfix) with ESMTP id 99F9A66E00D1\r
+ for <notmuch@notmuchmail.org>; Sun, 19 Aug 2012 18:53:05 -0700 (PDT)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+ id D42D98E8; Sun, 19 Aug 2012 18:53:03 -0700 (PDT)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: [PATCH 05/11] lib: add ability to store recipients in message\r
+ structure\r
+Date: Sun, 19 Aug 2012 18:52:44 -0700\r
+Message-Id: <1345427570-26518-6-git-send-email-jrollins@finestructure.net>\r
+X-Mailer: git-send-email 1.7.10.4\r
+In-Reply-To: <1345427570-26518-5-git-send-email-jrollins@finestructure.net>\r
+References: <1345427570-26518-1-git-send-email-jrollins@finestructure.net>\r
+ <1345427570-26518-2-git-send-email-jrollins@finestructure.net>\r
+ <1345427570-26518-3-git-send-email-jrollins@finestructure.net>\r
+ <1345427570-26518-4-git-send-email-jrollins@finestructure.net>\r
+ <1345427570-26518-5-git-send-email-jrollins@finestructure.net>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\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 Aug 2012 01:53:11 -0000\r
+\r
+Added as a string, in parallel to the authors element.\r
+---\r
+ lib/message.cc | 18 ++++++++++++++++++\r
+ lib/notmuch-private.h | 9 +++++++++\r
+ 2 files changed, 27 insertions(+)\r
+\r
+diff --git a/lib/message.cc b/lib/message.cc\r
+index 978de06..fa28073 100644\r
+--- a/lib/message.cc\r
++++ b/lib/message.cc\r
+@@ -36,6 +36,7 @@ struct visible _notmuch_message {\r
+ notmuch_string_list_t *filename_term_list;\r
+ notmuch_string_list_t *filename_list;\r
+ char *author;\r
++ char *recipients;\r
+ notmuch_message_file_t *message_file;\r
+ notmuch_message_list_t *replies;\r
+ unsigned long flags;\r
+@@ -109,6 +110,7 @@ _notmuch_message_create_for_document (const void *talloc_owner,\r
+ message->filename_list = NULL;\r
+ message->message_file = NULL;\r
+ message->author = NULL;\r
++ message->recipients = NULL;\r
+ \r
+ message->replies = _notmuch_message_list_create (message);\r
+ if (unlikely (message->replies == NULL)) {\r
+@@ -808,6 +810,22 @@ notmuch_message_set_author (notmuch_message_t *message,\r
+ return;\r
+ }\r
+ \r
++const char *\r
++notmuch_message_get_recipients (notmuch_message_t *message)\r
++{\r
++ return message->recipients;\r
++}\r
++\r
++void\r
++notmuch_message_set_recipients (notmuch_message_t *message,\r
++ const char *recipients)\r
++{\r
++ if (message->recipients)\r
++ talloc_free(message->recipients);\r
++ message->recipients = talloc_strdup(message, recipients);\r
++ return;\r
++}\r
++\r
+ void\r
+ _notmuch_message_set_header_values (notmuch_message_t *message,\r
+ const char *date,\r
+diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h\r
+index bfb4111..27a41b6 100644\r
+--- a/lib/notmuch-private.h\r
++++ b/lib/notmuch-private.h\r
+@@ -325,6 +325,15 @@ notmuch_message_set_author (notmuch_message_t *message, const char *author);\r
+ const char *\r
+ notmuch_message_get_author (notmuch_message_t *message);\r
+ \r
++/* Set the recipients of 'message' - this is the representation used\r
++ * when displaying the message */\r
++void\r
++notmuch_message_set_recipients (notmuch_message_t *message, const char *recipients);\r
++\r
++/* Get the authors of 'message' */\r
++const char *\r
++notmuch_message_get_recipients (notmuch_message_t *message);\r
++\r
+ \r
+ /* index.cc */\r
+ \r
+-- \r
+1.7.10.4\r
+\r