--- /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 CF9DD431FCB\r
+ for <notmuch@notmuchmail.org>; Sun, 19 Aug 2012 18:53:08 -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 d6Yp09xu-dzz for <notmuch@notmuchmail.org>;\r
+ Sun, 19 Aug 2012 18:53:06 -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 B6337431FAF\r
+ for <notmuch@notmuchmail.org>; Sun, 19 Aug 2012 18:53:06 -0700 (PDT)\r
+Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+ by earth-doxen-postvirus (Postfix) with ESMTP id 4192266E00E1\r
+ for <notmuch@notmuchmail.org>; Sun, 19 Aug 2012 18:53:06 -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 60CE766E00DF\r
+ for <notmuch@notmuchmail.org>; Sun, 19 Aug 2012 18:53:04 -0700 (PDT)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+ id C52DC77E; 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 00/11] add recipients to search output\r
+Date: Sun, 19 Aug 2012 18:52:39 -0700\r
+Message-Id: <1345427570-26518-1-git-send-email-jrollins@finestructure.net>\r
+X-Mailer: git-send-email 1.7.10.4\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:09 -0000\r
+\r
+This series is an attempt to add thread recipients to the search\r
+output.\r
+\r
+My personal overall goal of this series is to support the handling of\r
+drafts in the emacs ui. For drafts we want to see recipients, instead\r
+of authors, in the search output. I can imagine other uses for this\r
+series as well, though.\r
+\r
+The first four patches generalize the author list handling in thread\r
+objects to handle any address list. These patches could be applied\r
+regardless of if the rest of the series is accepted.\r
+\r
+After that we modify the thread constructor such that it can hold\r
+thread recipients as well. Since there is overhead in retrieving\r
+thread recipients from the message files (recipients are not stored in\r
+the database) this is handled with a switch.\r
+\r
+Further patches add the new switch to the search CLI that adds thread\r
+recipients to the structured output formats. I didn't modify the text\r
+output format, since there is no way to extend it. I can imagine\r
+tweaking the text output such that the author field is instead\r
+replaced by the recipients (as is done for the emacs UI at the end of\r
+the series), but that's not done here.\r
+\r
+In the emacs UI, I add a new toggle function that will toggle display\r
+of thread authors or recipients in the 'authors' field of the search\r
+output. It's unfortunate that this ambiguity in that field name\r
+remains, but I didn't know how to change that cleanly. I'm working on\r
+some tests for the new emacs functionality that I'll include in the\r
+inevitable v2 of this series.\r
+\r
+The last patch is mostly just a tickle to suggest adding the\r
+recipients to the database. It would make the --include-recipient\r
+searches much faster of course, but it might be overhead in the\r
+database that folks aren't interested in.\r
+\r
+As always, feedback, review, and comments are much appreciated.\r
+\r
+jamie.\r
+\r