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