"snoozing" with notmuch?
[notmuch-archives.git] / 84 / a3e70a20fe7b1cc992bb8f1ea85a6c15812ed7
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 A2067431FBF\r
6         for <notmuch@notmuchmail.org>; Mon, 16 Jul 2012 23:04:34 -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 OH0cDTJB2L0n for <notmuch@notmuchmail.org>;\r
17         Mon, 16 Jul 2012 23:04:34 -0700 (PDT)\r
18 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23])\r
19         by olra.theworths.org (Postfix) with SMTP id DE388431FBC\r
20         for <notmuch@notmuchmail.org>; Mon, 16 Jul 2012 23:04:33 -0700 (PDT)\r
21 Received: (qmail invoked by alias); 17 Jul 2012 06:04:32 -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 (mp031) with SMTP; 17 Jul 2012 08:04:32 +0200\r
25 X-Authenticated: #201305\r
26 X-Provags-ID: V01U2FsdGVkX1+PMTxuD7ePHfL+12nx6ttMCnC+sQvlSywu8iSV78\r
27         HWKN8R/YkgxO+D\r
28 Received: by dodekanex.arelion.at (Postfix, from userid 1000)\r
29         id 52A2A30271F; Mon, 16 Jul 2012 10:35:05 +0200 (CEST)\r
30 From: <craven@gmx.net>\r
31 To: notmuch@notmuchmail.org\r
32 Subject: [PATCH v6 0/3] notmuch-reply: Structured Formatters\r
33 Date: Mon, 16 Jul 2012 10:34:59 +0200\r
34 Message-Id: <1342427702-23316-1-git-send-email-craven@gmx.net>\r
35 X-Mailer: git-send-email 1.7.11.1\r
36 In-Reply-To: <20120714020954.GD31670@mit.edu>\r
37 References: <20120714020954.GD31670@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: Tue, 17 Jul 2012 06:04:34 -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 structures like\r
59 lists, maps, strings and numbers.\r
60 \r
61 The new code in sprinter.h and sprinter-json.c can be used instead of\r
62 the current ad-hoc output in all parts of notmuch, a patch for\r
63 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
69 A "structured" formatter is provided for notmuch-search that prints the\r
70 current text format. This removes almost all the special-casing from\r
71 notmuch-search.c.\r
72 \r