Re: [PATCH v3 0/5] New output format sexp (Lisp S-Expressions)
[notmuch-archives.git] / e9 / e52c5f2dd41e2d742cc883473259087ae65ef1
1 Return-Path: <m.walters@qmul.ac.uk>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 82AA1431FB6\r
6         for <notmuch@notmuchmail.org>; Thu,  6 Dec 2012 00:22:15 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.098\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5\r
12         tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,\r
13         NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id O3E5jeHUZVLu for <notmuch@notmuchmail.org>;\r
17         Thu,  6 Dec 2012 00:22:13 -0800 (PST)\r
18 Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6])\r
19         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 88212431FAE\r
22         for <notmuch@notmuchmail.org>; Thu,  6 Dec 2012 00:22:13 -0800 (PST)\r
23 Received: from smtp.qmul.ac.uk ([138.37.6.40])\r
24         by mail2.qmul.ac.uk with esmtp (Exim 4.71)\r
25         (envelope-from <m.walters@qmul.ac.uk>)\r
26         id 1TgWii-0003Bq-0I; Thu, 06 Dec 2012 08:22:12 +0000\r
27 Received: from 93-97-24-31.zone5.bethere.co.uk ([93.97.24.31] helo=localhost)\r
28         by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69)\r
29         (envelope-from <m.walters@qmul.ac.uk>)\r
30         id 1TgWih-0007cq-Np; Thu, 06 Dec 2012 08:22:11 +0000\r
31 From: Mark Walters <markwalters1009@gmail.com>\r
32 To: Peter Feigl <craven@gmx.net>, notmuch@notmuchmail.org\r
33 Subject: Re: [PATCH v3 0/5] New output format sexp (Lisp S-Expressions)\r
34 In-Reply-To: <1354779189-12231-1-git-send-email-craven@gmx.net>\r
35 References: <1354632382-15609-1-git-send-email-craven@gmx.net>\r
36         <1354779189-12231-1-git-send-email-craven@gmx.net>\r
37 User-Agent: Notmuch/0.14+81~g9730584 (http://notmuchmail.org) Emacs/23.4.1\r
38         (x86_64-pc-linux-gnu)\r
39 Date: Thu, 06 Dec 2012 08:22:15 +0000\r
40 Message-ID: <87sj7jpp3c.fsf@qmul.ac.uk>\r
41 MIME-Version: 1.0\r
42 Content-Type: text/plain; charset=us-ascii\r
43 X-Sender-Host-Address: 93.97.24.31\r
44 X-QM-SPAM-Info: Sender has good ham record.  :)\r
45 X-QM-Body-MD5: 35d7347955e403bfac04ca07332c5276 (of first 20000 bytes)\r
46 X-SpamAssassin-Score: -1.7\r
47 X-SpamAssassin-SpamBar: -\r
48 X-SpamAssassin-Report: The QM spam filters have analysed this message to\r
49         determine if it is\r
50         spam. We require at least 5.0 points to mark a message as spam.\r
51         This message scored -1.7 points.\r
52         Summary of the scoring: \r
53         * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,\r
54         *      medium trust\r
55         *      [138.37.6.40 listed in list.dnswl.org]\r
56         * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\r
57         provider *      (markwalters1009[at]gmail.com)\r
58         *  0.6 AWL AWL: From: address is in the auto white-list\r
59 X-QM-Scan-Virus: ClamAV says the message is clean\r
60 X-BeenThere: notmuch@notmuchmail.org\r
61 X-Mailman-Version: 2.1.13\r
62 Precedence: list\r
63 List-Id: "Use and development of the notmuch mail system."\r
64         <notmuch.notmuchmail.org>\r
65 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
66         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
67 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
68 List-Post: <mailto:notmuch@notmuchmail.org>\r
69 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
70 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
71         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
72 X-List-Received-Date: Thu, 06 Dec 2012 08:22:15 -0000\r
73 \r
74 \r
75 On Thu, 06 Dec 2012, Peter Feigl <craven@gmx.net> wrote:\r
76 > This patch series adds a new output format "sexp" to notmuch-reply,\r
77 > notmuch-show and notmuch-search. These are useful for the Android mobile\r
78 > client and perhaps other Lisp programs as well.\r
79 > After the switch to a generic structured output printer, which was\r
80 > committed some months ago, these patches just add another one (like the\r
81 > json structured output printer).\r
82 > Basic tests and updates to the man pages are also included.\r
83 >\r
84 > This version includes the fixes according to Austin Clements'\r
85 > comments. It also changes the output from alists to plists, as these\r
86 > should work just as fine on all Lisps.\r
87 \r
88 This is looking very nice: I haven't reviewed the first patch (the\r
89 sprinting itself) but the others look good (modulo the two small\r
90 points). I can confirm that the output works in notmuch show (with a two\r
91 line tweak to use s-expressions).\r
92 \r
93 Best wishes\r
94 \r
95 Mark\r
96 \r
97 \r
98 >\r
99 > Peter Feigl (5):\r
100 >   Adding an S-expression structured output printer.\r
101 >   Rename the -json printer functions in notmuch-reply and notmuch-show\r
102 >     to     generic -sprinter functions.\r
103 >   Use the S-Expression structured printer in notmuch-show,\r
104 >     notmuch-reply     and notmuch-search.\r
105 >   Adding tests for --format=sexp.\r
106 >   Updating man pages for new S-Expression output format.\r
107 >\r
108 >  Makefile.local            |   1 +\r
109 >  devel/schemata            |   8 +-\r
110 >  man/man1/notmuch-reply.1  |  14 ++-\r
111 >  man/man1/notmuch-search.1 |  15 +--\r
112 >  man/man1/notmuch-show.1   |  36 +++++--\r
113 >  notmuch-client.h          |   8 +-\r
114 >  notmuch-reply.c           |  48 ++++++----\r
115 >  notmuch-search.c          |   6 +-\r
116 >  notmuch-show.c            |  65 +++++++------\r
117 >  sprinter-sexp.c           | 238 ++++++++++++++++++++++++++++++++++++++++++++++\r
118 >  sprinter.h                |   4 +\r
119 >  test/notmuch-test         |   1 +\r
120 >  test/sexp                 |  48 ++++++++++\r
121 >  13 files changed, 423 insertions(+), 69 deletions(-)\r
122 >  create mode 100644 sprinter-sexp.c\r
123 >  create mode 100755 test/sexp\r
124 >\r
125 > -- \r
126 > 1.8.0\r
127 >\r
128 > _______________________________________________\r
129 > notmuch mailing list\r
130 > notmuch@notmuchmail.org\r
131 > http://notmuchmail.org/mailman/listinfo/notmuch\r