Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 69 / 2de0b2ce4415e5d056bb19a96e396236b01ae2
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 E7ADE431FC7\r
6         for <notmuch@notmuchmail.org>; Sat,  7 Jul 2012 08:13:14 -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: 2.7\r
10 X-Spam-Level: **\r
11 X-Spam-Status: No, score=2.7 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         FREEMAIL_REPLY=2.499, 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 w9NFfApX1goX for <notmuch@notmuchmail.org>;\r
18         Sat,  7 Jul 2012 08:13:10 -0700 (PDT)\r
19 Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com\r
20  [74.125.82.45])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
21  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
22  5111D431FAE    for <notmuch@notmuchmail.org>; Sat,  7 Jul 2012 08:13:10 -0700\r
23  (PDT)\r
24 Received: by wgbdt14 with SMTP id dt14so8437273wgb.2\r
25         for <notmuch@notmuchmail.org>; Sat, 07 Jul 2012 08:13:08 -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:x-mailer;\r
28         bh=2RmRLxTzPEY7REyG6NctvNOVzqoqgUDRUfOSrqDR/44=;\r
29         b=wY3w2+8m7B3/16TDO7crg2Af3lWqWUlfS3PiecD2lXLQG9YMqEae5IcFAvj2GWUNGe\r
30         fc6lJqSWaORcqn1i3yd54L+0KSUhMY2tHDYca5Fp+vbQx1auytdc4zJnKZ693TNCQXvi\r
31         gBD+OBqbNbjMNvbLAdFqXLg+CBl38M6+PSDEneGF+5N4MEoeTq4nPVnS9QLeT13e3BY0\r
32         iLxPtkScoNodEkuANgey+LBsL5mtQ5L8SxiuspVKZ82B25eLg88VJDQy0srnTxbFRcun\r
33         xkiLi8+QItryrp5br+kophOgLgXrUo+0j2w5hr5I0nGfl2ZLwq6iR6se7bTpkd8h/SAU\r
34         TySQ==\r
35 Received: by 10.180.92.7 with SMTP id ci7mr18441319wib.1.1341673988508;\r
36         Sat, 07 Jul 2012 08:13:08 -0700 (PDT)\r
37 Received: from localhost (94-192-233-223.zone6.bethere.co.uk.\r
38  [94.192.233.223])      by mx.google.com with ESMTPS id\r
39  q6sm12651725wiy.0.2012.07.07.08.13.06  (version=TLSv1/SSLv3 cipher=OTHER);\r
40         Sat, 07 Jul 2012 08:13:07 -0700 (PDT)\r
41 From: Mark Walters <markwalters1009@gmail.com>\r
42 To: notmuch@notmuchmail.org\r
43 Subject: [PATCH 0/3] Control notmuch show output\r
44 Date: Sat,  7 Jul 2012 16:12:55 +0100\r
45 Message-Id: <1341673978-6094-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: Sat, 07 Jul 2012 15:13:15 -0000\r
60 \r
61 This is a first draft of a patch set allowing the caller to control\r
62 the output of notmuch show. This option should subsume the\r
63 --headers-only option (see\r
64 id:"1341041595-5858-1-git-send-email-markwalters1009@gmail.com") and\r
65 the reply-to patch\r
66 (id:"1340508470-16606-2-git-send-email-novalazy@gmail.com") as well as\r
67 being extensible.\r
68 \r
69 It follows the suggestions made in\r
70 id:"20120704182459.GI2342@hili.localdomain" and\r
71 id:"CAB+hUn_sxy=QP1+OzGwKOcSYGi13Q61m4-bq+PGnYxCMPd0fvg@mail.gmail.com"\r
72 \r
73 and modifies the cli parser to allow keyword lists of the form --output=from,cc,body\r
74 \r
75 The first patch adds this functionality to the option parser. It uses\r
76 a bitfield to pass the flags specified so we are limited to 32 (or\r
77 perhaps 31) possible options.\r
78 \r
79 The second patch implements this for the selection of which headers to\r
80 return. Since notmuch-reply.c wanted exactly this functionality (since\r
81 it wants in-reply-to headers and reference headers but not the date\r
82 header) it is converted to use this style.\r
83 \r
84 The third patch uses this functionality to implement the\r
85 --headers-only functionality by adding a "body" option to the list of\r
86 things the user can choose to output or not. \r
87 \r
88 Currently, I have not written any tests for the new functionality,\r
89 updated the man page, or implemented for any format except JSON.\r
90 \r
91 Do people have any comments in the current form?\r
92 \r
93 Best wishes\r
94 \r
95 Mark\r
96 \r
97 \r
98 \r
99 \r
100 Mark Walters (3):\r
101   cli: allow keyword lists in argument parser.\r
102   cli: show allow the caller to specify the headers output.\r
103   cli: allow show to omit message bodies.\r
104 \r
105  command-line-arguments.c |   47 +++++++++++++++++++++++\r
106  command-line-arguments.h |    3 +-\r
107  notmuch-client.h         |   26 ++++++++++++-\r
108  notmuch-reply.c          |   12 +++++-\r
109  notmuch-show.c           |   92 +++++++++++++++++++++++++++++++--------------\r
110  5 files changed, 146 insertions(+), 34 deletions(-)\r
111 \r
112 -- \r
113 1.7.9.1\r
114 \r