Re: Exporting a single email as JSON
authorJameson Graef Rollins <jrollins@finestructure.net>
Sat, 10 Dec 2011 20:15:39 +0000 (12:15 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:40:43 +0000 (09:40 -0800)
04/8e35192923de67d68ac62ad4b33533575924d3 [new file with mode: 0644]

diff --git a/04/8e35192923de67d68ac62ad4b33533575924d3 b/04/8e35192923de67d68ac62ad4b33533575924d3
new file mode 100644 (file)
index 0000000..cc041a9
--- /dev/null
@@ -0,0 +1,101 @@
+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 0CE53429E25\r
+       for <notmuch@notmuchmail.org>; Sat, 10 Dec 2011 12:15:52 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.29\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 HexErDDrYp7y for <notmuch@notmuchmail.org>;\r
+       Sat, 10 Dec 2011 12:15:51 -0800 (PST)\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 911A6431FB6\r
+       for <notmuch@notmuchmail.org>; Sat, 10 Dec 2011 12:15:51 -0800 (PST)\r
+Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by earth-doxen-postvirus (Postfix) with ESMTP id 0117266E016D;\r
+       Sat, 10 Dec 2011 12:15:48 -0800 (PST)\r
+X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
+Received: from finestructure.net (cpe-76-174-137-84.socal.res.rr.com\r
+       [76.174.137.84]) (Authenticated sender: jrollins)\r
+       by earth-doxen-submit (Postfix) with ESMTP id EFB9366E015B;\r
+       Sat, 10 Dec 2011 12:15:41 -0800 (PST)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id 39C8D50F; Sat, 10 Dec 2011 15:15:42 -0500 (EST)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Ciprian Dorin Craciun <ciprian.craciun@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: Exporting a single email as JSON\r
+In-Reply-To:\r
+ <CA+Tk8fycS4kmBRABRS4vFQLb3v0-ajcLZwPOwwEf98yvObgpwA@mail.gmail.com>\r
+References:\r
+ <CA+Tk8fycS4kmBRABRS4vFQLb3v0-ajcLZwPOwwEf98yvObgpwA@mail.gmail.com>\r
+User-Agent: Notmuch/0.10.2+74~g994a706 (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Sat, 10 Dec 2011 12:15:39 -0800\r
+Message-ID: <87zkf05gk4.fsf@servo.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha256; protocol="application/pgp-signature"\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, 10 Dec 2011 20:15:52 -0000\r
+\r
+--=-=-=\r
+\r
+On Sat, 10 Dec 2011 20:32:22 +0200, Ciprian Dorin Craciun <ciprian.craciun@gmail.com> wrote:\r
+>     Quick question: why isn't it reasonable to export a **single**\r
+> email in JSON format (by using the `show` sub-command)? (I mean I\r
+> understand that in order to be able to correctly parse the output we\r
+> need only one "object" (i.e. a list of threads, containing a list of\r
+> emails, etc.). But there might be use cases in which we need a\r
+> "twist".)\r
+\r
+Hi, Ciprian.  I agree that it would be nice too have the ability to\r
+output single messages without the rest of their thread.  I have on\r
+occasion wanted this functionality, but never enough to get around to\r
+implementing it.  It definitely wouldn't be that hard to implement,\r
+though.\r
+\r
+The notmuch show function is actually going through a pretty major\r
+overhaul at the moment.  I bet as soon as that's done we can get some\r
+sort of single-message output going.\r
+\r
+jamie.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJO473rAAoJEO00zqvie6q8HTkQAIT0P/0ZRwFFKJk9LKoJK8Rm\r
+puCdeQACCqihHSn9FECHDoXaLd+ZnzBPubV/+aFnD2YIlQeicJgx7L3kVUmbXc0y\r
+HI4FdcYe11mpnRosI891YJlZRrnkazVQsxQ+4Nn0qGvU3xxFgMq1TemMg8vMWFij\r
+L0zhlT9LKhQ6a99/2lcptBj77mV+VTUNLznwOUZ+nvI2oI1z0E4OCZB5GXOo3OAq\r
+5PlnTZ5TVvfaYeDxMjwdzQUd0tQFetANa6gUDUY+77HbRbISMVXPoTizsnBFzOTU\r
+p/KItpaeWw5fOecJL/Ii7+pgTApOYhtQQB4zb1FG0GE3vFStdVQ8+ZJskKjoxOZj\r
+LaiGKwFiqKV1b+2OBtsY8Dd+aiMvWpYBtAEvlBTe+FC/UyLplMpV37lONuGDblb0\r
+YXlXE0+1Edt7IfvuiBy8jiSjtuiE0Cs61G7a5ZED/00ontbqNkAcCwbjfF1mnnzi\r
+ytKRr/5CZ5N/CSefxxF5NiDpxpYDL/Dke4lKFrXzGPGrCC2exDGCSE7wPOgHZS8l\r
+aRr7N0hxmcN3OvpMRO5PJO4iRapxYmvcceCBP/mrFJUN2addgnycipM3H+R8XRfR\r
+koucZuVSVc0vpjpnogUmla7MT9u11M7Lqf+F+am5vQbnsAVKP9fWjTMstDFi1TSY\r
+IL6213kZea+I6tPnlQyp\r
+=3J0E\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r