--- /dev/null
+Return-Path: <sojkam1@fel.cvut.cz>\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 14053431FAF\r
+ for <notmuch@notmuchmail.org>; Sat, 20 Sep 2014 01:04:27 -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 YWUJOs0kGQTl for <notmuch@notmuchmail.org>;\r
+ Sat, 20 Sep 2014 01:04:21 -0700 (PDT)\r
+Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
+ by olra.theworths.org (Postfix) with ESMTP id 9A1AE431FAE\r
+ for <notmuch@notmuchmail.org>; Sat, 20 Sep 2014 01:04:21 -0700 (PDT)\r
+Received: from localhost (unknown [192.168.200.7])\r
+ by max.feld.cvut.cz (Postfix) with ESMTP id 5769D3CFE87;\r
+ Sat, 20 Sep 2014 10:04:19 +0200 (CEST)\r
+X-Virus-Scanned: IMAP STYX AMAVIS\r
+Received: from max.feld.cvut.cz ([192.168.200.1])\r
+ by localhost (styx.feld.cvut.cz [192.168.200.7]) (amavisd-new,\r
+ port 10044)\r
+ with ESMTP id aNw2MiXCtBF5; Sat, 20 Sep 2014 10:04:15 +0200 (CEST)\r
+Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
+ by max.feld.cvut.cz (Postfix) with ESMTP id 011E33CFE82;\r
+ Sat, 20 Sep 2014 10:04:14 +0200 (CEST)\r
+Received: from wsh by steelpick.2x.cz with local (Exim 4.84)\r
+ (envelope-from <sojkam1@fel.cvut.cz>)\r
+ id 1XVFeK-0006AJ-0U; Sat, 20 Sep 2014 10:04:08 +0200\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+To: David Bremner <david@tethera.net>, Jani Nikula <jani@nikula.org>,\r
+ notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] cli: add --output=address-{from, to,\r
+ all} to notmuch search\r
+In-Reply-To: <87k34zbcy3.fsf@maritornes.cs.unb.ca>\r
+References: <871troub1v.fsf@qmul.ac.uk>\r
+ <1410021689-15901-1-git-send-email-jani@nikula.org>\r
+ <87k34zbcy3.fsf@maritornes.cs.unb.ca>\r
+User-Agent: Notmuch/0.18.1+94~gceee2d7 (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Sat, 20 Sep 2014 10:04:08 +0200\r
+Message-ID: <87tx427m6f.fsf@steelpick.2x.cz>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\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: Sat, 20 Sep 2014 08:04:27 -0000\r
+\r
+On Fri, Sep 19 2014, David Bremner wrote:\r
+> Jani Nikula <jani@nikula.org> writes:\r
+>\r
+>> + if (name && *name)\r
+>> + full_address = talloc_asprintf (NULL, "%s <%s>", name, addr);\r
+>> + else\r
+>> + full_address = talloc_asprintf (NULL, "<%s>", addr\r
+>\r
+> Is there some reason not to use sprinter as a talloc context here?\r
+>\r
+>> +\r
+>> + if (!full_address)\r
+>> + break;\r
+>\r
+> Is the error here out of memory? Maybe an error message would be a good\r
+> idea.\r
+>\r
+>\r
+> Obviously the docs need to be updated as well, and ideally the tests. I\r
+> think Jani was hinting that he didn't want to be the person to do\r
+> that. Any volunteers?\r
+\r
+Yes, I'll look at that. It will probably take me a few days.\r
+\r
+-Michal\r