Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / 98 / 7080d9f461a33228a3d55729ce7ee1442ec1f9
1 Return-Path: <markwalters1009@gmail.com>\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 AD3C6431FD0\r
6         for <notmuch@notmuchmail.org>; Sun,  1 Sep 2013 20:28:21 -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.201\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
14         RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id DAvu4prf-Klv for <notmuch@notmuchmail.org>;\r
18         Sun,  1 Sep 2013 20:28:16 -0700 (PDT)\r
19 Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com\r
20         [209.85.212.182]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id 06FBE431FC3\r
23         for <notmuch@notmuchmail.org>; Sun,  1 Sep 2013 20:28:15 -0700 (PDT)\r
24 Received: by mail-wi0-f182.google.com with SMTP id ez12so762982wid.3\r
25         for <notmuch@notmuchmail.org>; Sun, 01 Sep 2013 20:28:14 -0700 (PDT)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
27         h=from:to:cc:subject:date:message-id;\r
28         bh=MHwJHLYw35A1bkWFmtZxpmIfDff90pd46wYd+sEtyXc=;\r
29         b=Im1bi+GPiehBEo2nhIkI9CYbLPLQpjFX6BhBW+XwBYRwNEWXH4Ce890CpOZguxfs7k\r
30         iy/HNsu05oEqanP6Cn2GFyQsOhVjV6V1ERL0yWD3oRzxU0aXB56lrfeIEzbJnn8aV2aS\r
31         CAaza8MCGXNKVyxPDmlxFtjOfhpMixh2W5PgLNAsj9g0iu6Nfxd2egDFBz4a3IKGss6H\r
32         /ufuwN6zhweEceooGWBPuWZbzP/Qt20noTfUpzwhosMLJon5bk7TRGWs1WRMRw5UbUQY\r
33         uoY1Rg5ptR6WBK1pyg+zhYWEhSxjXgqJojYBLrHgihi6cTMgzT2RV87yUYJRs8MKBojg\r
34         eiIg==\r
35 X-Received: by 10.180.9.140 with SMTP id z12mr3172668wia.37.1378092493424;\r
36         Sun, 01 Sep 2013 20:28:13 -0700 (PDT)\r
37 Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
38         by mx.google.com with ESMTPSA id z2sm14396586wiv.11.1969.12.31.16.00.00\r
39         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
40         Sun, 01 Sep 2013 20:28:12 -0700 (PDT)\r
41 From: Mark Walters <markwalters1009@gmail.com>\r
42 To: notmuch@notmuchmail.org\r
43 Subject: [PATCH 0/4] contrib: pick: allow more general format lines\r
44 Date: Mon,  2 Sep 2013 04:28:04 +0100\r
45 Message-Id: <1378092488-32050-1-git-send-email-markwalters1009@gmail.com>\r
46 X-Mailer: git-send-email 1.7.9.1\r
47 X-BeenThere: notmuch@notmuchmail.org\r
48 X-Mailman-Version: 2.1.13\r
49 Precedence: list\r
50 List-Id: "Use and development of the notmuch mail system."\r
51         <notmuch.notmuchmail.org>\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
55 List-Post: <mailto:notmuch@notmuchmail.org>\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
59 X-List-Received-Date: Mon, 02 Sep 2013 03:28:21 -0000\r
60 \r
61 Currently pick makes the tree box graphics part of the "subject". This\r
62 is rather unsatisfactory: the tree graphics should be a field in their\r
63 own right.\r
64 \r
65 However, there is no mechanism in the current setup for allowing 2\r
66 fields to have fixed combined width but variable individual\r
67 width. Thus making the tree graphics a seperate field means that we\r
68 cannot keep the current display which is \r
69 \r
70 date (12 characters) authors (20 characters) tree+subject (54 characters) tags\r
71 \r
72 We solve this by extending the format specifier. Previously this was a\r
73 list of cons cells (field-name . format-string) We now allow the\r
74 left-side (the field-name) itself to be a list of cons cells in which case we\r
75 apply the formatting recursively.\r
76 \r
77 This means we can separate the tree box graphics into their own field\r
78 while maintaining the current format.\r
79 \r
80 Note that this will mean that people who have customised the\r
81 result-format will need to update their customisation.\r
82 \r
83 The patch is larger but relatively simple.\r
84 \r
85 Patch 1/4 is unrelated except I found it while doing this update: we\r
86 consistency we should print () for messages with no tags.\r
87 \r
88 Patch 2/4 is large but trivial: it moves the insertion up a level in\r
89 preparation for the recursive formatting.\r
90 \r
91 Patch 3/4 is also simple: it just allows the recursive formatting.\r
92 \r
93 Patch 4/4 separates out the tree field. This patch is large as\r
94 it allows separate tree faces (matching and non-matching). The\r
95 "genuine code" part of the patch is relatively small.\r
96 \r
97 Finally, this is the last series (apart from some extra tests and\r
98 keeping up with mainline progress) that I think pick needs before it's\r
99 ready for consideration in non-contrib mainline.\r
100 \r
101 Best wishes\r
102 \r
103 Mark\r
104 \r
105 \r
106 \r
107 Mark Walters (4):\r
108   contrib: pick: print () for a message with no tags\r
109   contrib: pick: move the insertion of fields up a level\r
110   contrib: pick: allow recursive message field formats\r
111   contrib: pick: make the tree graphics a proper part of the format\r
112 \r
113  contrib/notmuch-pick/notmuch-pick.el |   93 ++++++++++++++++++++++++---------\r
114  1 files changed, 67 insertions(+), 26 deletions(-)\r
115 \r
116 -- \r
117 1.7.9.1\r
118 \r