Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / f0 / a31d3766214b7497f95da6c619c9a3ca6ab021
1 Return-Path: <craven@gmx.net>\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 644FE431FC7\r
6         for <notmuch@notmuchmail.org>; Thu, 12 Jul 2012 00:42:10 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.001\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.001 tagged_above=-999 required=5\r
12         tests=[FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001]\r
13         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 R2pb9xRe7Xq5 for <notmuch@notmuchmail.org>;\r
17         Thu, 12 Jul 2012 00:42:10 -0700 (PDT)\r
18 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22])\r
19         by olra.theworths.org (Postfix) with SMTP id 9E3F8431FAE\r
20         for <notmuch@notmuchmail.org>; Thu, 12 Jul 2012 00:42:09 -0700 (PDT)\r
21 Received: (qmail invoked by alias); 12 Jul 2012 07:42:02 -0000\r
22 Received: from gw.arelion.cust.net.lagis.at (EHLO dodekanex.arelion.at)\r
23         [83.164.197.182]\r
24         by mail.gmx.net (mp033) with SMTP; 12 Jul 2012 09:42:02 +0200\r
25 X-Authenticated: #201305\r
26 X-Provags-ID: V01U2FsdGVkX19uyYcosdlugZbxWUIO4vqOl3GmgQ8WephdZfN7M7\r
27         4ENuSjvnTyIjUi\r
28 Received: by dodekanex.arelion.at (Postfix, from userid 1000)\r
29         id F039C3011C0; Thu, 12 Jul 2012 09:43:30 +0200 (CEST)\r
30 From: <craven@gmx.net>\r
31 To: notmuch@notmuchmail.org\r
32 Subject: Structured Formatters for JSON Output\r
33 Date: Thu, 12 Jul 2012 09:43:21 +0200\r
34 Message-Id: <1342079004-5300-1-git-send-email-craven@gmx.net>\r
35 X-Mailer: git-send-email 1.7.11.1\r
36 In-Reply-To: <87d34hsdx8.fsf@awakening.csail.mit.edu>\r
37 References: <87d34hsdx8.fsf@awakening.csail.mit.edu>\r
38 X-Y-GMX-Trusted: 0\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.13\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43         <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Thu, 12 Jul 2012 07:42:10 -0000\r
52 \r
53 Currently there is no easy way to add support for different structured\r
54 formatters (like JSON). For example, adding support for S-Expressions\r
55 would result in code duplication.\r
56 \r
57 This patch series amends the situation by introducing structured\r
58 formatters, which allow different implementations of structured output\r
59 for elements like lists, maps, strings and numbers.\r
60 \r
61 The new code in sprinter.h and sprinter.c can be used\r
62 instead of the current ad-hoc output in all parts of notmuch, a patch\r
63 for notmuch-search.c is included.\r
64 \r
65 In a later patch, all other parts of notmuch should be adapted to the\r
66 structured formatters, and the creation of formatters should be\r
67 centralised (to make adding new formatters easier).\r
68 \r