Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / cb / 8f4da9f8373223825183c3ff27008b48dd653b
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 0E1F3431FAF\r
6         for <notmuch@notmuchmail.org>; Sun, 22 Jul 2012 07:38:09 -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 ygWqJ6r-+u2f for <notmuch@notmuchmail.org>;\r
18         Sun, 22 Jul 2012 07:38:08 -0700 (PDT)\r
19 Received: from mail-we0-f181.google.com (mail-we0-f181.google.com\r
20         [74.125.82.181]) (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 EB70A431FAE\r
23         for <notmuch@notmuchmail.org>; Sun, 22 Jul 2012 07:38:07 -0700 (PDT)\r
24 Received: by weyt57 with SMTP id t57so4152698wey.26\r
25         for <notmuch@notmuchmail.org>; Sun, 22 Jul 2012 07:38:05 -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=XdFWsu8vQJRkUJQjMQzlut5+mBhlLa5HIatYQmwp1Xw=;\r
29         b=CfDOQktrYsnwgmSBKGzGPxevWPnyMyJbl18z/hP9pH95uDrBezYRET9H7s0+rffOnF\r
30         WumpPooVGVOtCKwOY5cctLxeJSERY100b6CvNPoZfdDTSOqwVbdZPmQGe/FHOFPk3lqA\r
31         Pv0N4zlnHpgfIOTNsFTu8rOUXyP8hkT25LRKA5QPXMNdwSIBQp6R7nqfOJ8m0KPqqG49\r
32         5E+c+LvBsXQryHs7lXiOkdKT97GYHV4skP9ZJwgHCTxSJLOm5LYI6D3dikH2uG4PJmZZ\r
33         t5aYoi2d8IGkUuy55YPJVIxQq2jmuj2ZzPUEyqdmHZnQaOqNBtxeJ64TEZ3y9Yryg2RE\r
34         RSJg==\r
35 Received: by 10.180.100.35 with SMTP id ev3mr21651751wib.10.1342967884876;\r
36         Sun, 22 Jul 2012 07:38:04 -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  ef5sm16731287wib.3.2012.07.22.07.38.03 (version=TLSv1/SSLv3 cipher=OTHER);\r
40         Sun, 22 Jul 2012 07:38:03 -0700 (PDT)\r
41 From: Mark Walters <markwalters1009@gmail.com>\r
42 To: notmuch@notmuchmail.org\r
43 Subject: [PATCH 0/4] Add a --include-text-content option to notmuch-show.c\r
44 Date: Sun, 22 Jul 2012 15:37:55 +0100\r
45 Message-Id: <1342967879-20453-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: Sun, 22 Jul 2012 14:38:09 -0000\r
60 \r
61 Currently notmuch show includes text/* parts (except text/html) in the\r
62 JSON and text outputs. This patch adds a new option\r
63 --include-text-content=true|false which allows the caller to disable\r
64 this behaviour.\r
65 \r
66 This is similar to the --headers-only option proposed in\r
67 id:"1341041595-5858-1-git-send-email-markwalters1009@gmail.com". The\r
68 key difference is that this version does not change the JSON output\r
69 schema: the schema says that "A leaf part's body content is optional,\r
70 but may be included if it can be correctly encoded as a string."\r
71 \r
72 This means that the emacs show mode works correctly if switched to\r
73 specifying --include-text-content=false (it fetches each part\r
74 individually). Indeed, it may be desirable to make that the default\r
75 (as suggested by Jamie in\r
76 id:"877gu7gzy9.fsf@servo.finestructure.net"). However, this may make\r
77 show significantly slower so we do not change the default here.\r
78 \r
79 There have been other suggestions of allowing the user to specify\r
80 exactly which parts/headers etc notmuch should return and even of\r
81 unifying show and search. That is obviously a much bigger change than\r
82 this (and this would not make that any more difficult).\r
83 \r
84 Finally, the advantage of this change is that it can substantially\r
85 speed up some uses (when the caller only wants the headers): see\r
86 id:"87r4sei8yu.fsf@qmul.ac.uk" for some examples with a factor of 8\r
87 speed up.\r
88 \r
89 Best wishes\r
90 \r
91 Mark\r
92 \r
93 \r
94 \r
95 Mark Walters (4):\r
96   cli: show: add --include-text-content=true|false option\r
97   cli: show: implement --include-text-content for --format=text\r
98   test: add some tests for --include-text-content option\r
99   man: update man page for --include-text-option\r
100 \r
101  man/man1/notmuch-show.1 |   12 ++++++++++\r
102  notmuch-client.h        |    3 +-\r
103  notmuch-reply.c         |    2 +-\r
104  notmuch-show.c          |   57 ++++++++++++++++++++++++++++-------------------\r
105  test/json               |    9 +++++++\r
106  5 files changed, 58 insertions(+), 25 deletions(-)\r
107 \r
108 -- \r
109 1.7.9.1\r
110 \r