Re: [PATCH v4 09/16] index encrypted parts when asked.
[notmuch-archives.git] / e8 / da1e3eb4027ce1c1308c777e3c6ff65afacf65
1 Return-Path: <aaronecay@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 473AF429E39\r
6         for <notmuch@notmuchmail.org>; Sun,  8 Jan 2012 17:27:44 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 Fp5ZDqfg68AZ for <notmuch@notmuchmail.org>;\r
17         Sun,  8 Jan 2012 17:27:41 -0800 (PST)\r
18 Received: from mail-iy0-f181.google.com (mail-iy0-f181.google.com\r
19         [209.85.210.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 2457D429E33\r
22         for <notmuch@notmuchmail.org>; Sun,  8 Jan 2012 17:27:41 -0800 (PST)\r
23 Received: by iakk12 with SMTP id k12so6761631iak.26\r
24         for <notmuch@notmuchmail.org>; Sun, 08 Jan 2012 17:27:40 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
27         :mime-version:content-type:content-transfer-encoding;\r
28         bh=wR9RXdXgD6HkeK9mwyO8LqDmokRXVdfdQQycbY+StRI=;\r
29         b=xadqdsqBYAjzJS0vsktCTX5gmBkueDAI0XXDJk3AiBn9X99cjTC7jKEM/KtIJjLPRT\r
30         6Kpm+DIm2h5Qa3B0Bni757imc3OM3pZUx9saSE+PYAGc6CxvvUfP2zPI2HAKQvuUvzoq\r
31         W7igVgMr1zjstED9KiSCDPqy2DzdNBIr7/aRE=\r
32 Received: by 10.43.54.10 with SMTP id vs10mr14059698icb.13.1326072460447;\r
33         Sun, 08 Jan 2012 17:27:40 -0800 (PST)\r
34 Received: from localhost (c-68-80-94-73.hsd1.pa.comcast.net. [68.80.94.73])\r
35         by mx.google.com with ESMTPS id r18sm244793914ibh.4.2012.01.08.17.27.39\r
36         (version=TLSv1/SSLv3 cipher=OTHER);\r
37         Sun, 08 Jan 2012 17:27:39 -0800 (PST)\r
38 From: Aaron Ecay <aaronecay@gmail.com>\r
39 To: Adam Wolfe Gordon <awg+notmuch@xvx.ca>, notmuch@notmuchmail.org\r
40 Subject: Re: [PATCH 4/4] emacs: Use the new JSON reply format.\r
41 In-Reply-To: <1326009162-19524-5-git-send-email-awg+notmuch@xvx.ca>\r
42 References: <1326009162-19524-1-git-send-email-awg+notmuch@xvx.ca>\r
43         <1326009162-19524-5-git-send-email-awg+notmuch@xvx.ca>\r
44 User-Agent: Notmuch/0.10.1+56~gd709fd6 (http://notmuchmail.org)\r
45         Emacs/24.0.92.3 (i386-apple-darwin10.8.0)\r
46 Date: Sun, 08 Jan 2012 20:27:36 -0500\r
47 Message-ID: <m2ty45is1j.fsf@gmail.com>\r
48 MIME-Version: 1.0\r
49 Content-Type: text/plain; charset=utf-8\r
50 Content-Transfer-Encoding: quoted-printable\r
51 X-BeenThere: notmuch@notmuchmail.org\r
52 X-Mailman-Version: 2.1.13\r
53 Precedence: list\r
54 List-Id: "Use and development of the notmuch mail system."\r
55         <notmuch.notmuchmail.org>\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
59 List-Post: <mailto:notmuch@notmuchmail.org>\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
63 X-List-Received-Date: Mon, 09 Jan 2012 01:27:53 -0000\r
64 \r
65 Adam,\r
66 \r
67 One comment below.\r
68 \r
69 On Sun,  8 Jan 2012 00:52:42 -0700, Adam Wolfe Gordon <awg+notmuch@xvx.ca> =\r
70 wrote:\r
71 > From: Adam Wolfe Gordon <awg@xvx.ca>\r
72 >=20\r
73 > Using the new JSON reply format allows emacs to quote HTML parts\r
74 > nicely by first parsing them with w3m, then quoting them. This is\r
75 > very useful for users who regularly receive HTML-only email.\r
76 >=20\r
77 > The behavior for messages that contain plain text parts should be\r
78 > unchanged, except that an additional quoted line is added to the end\r
79 > of the reply message.  The test has been updated to reflect this.\r
80 > ---\r
81 >  emacs/notmuch-mua.el |   62 +++++++++++++++++++++++++++++++++++++++-----=\r
82 -----\r
83 >  test/emacs           |    1 +\r
84 >  2 files changed, 50 insertions(+), 13 deletions(-)\r
85 >=20\r
86 > diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el\r
87 > index 7114e48..7f894cb 100644\r
88 > --- a/emacs/notmuch-mua.el\r
89 > +++ b/emacs/notmuch-mua.el\r
90 > @@ -19,6 +19,7 @@\r
91 >  ;;\r
92 >  ;; Authors: David Edmondson <dme@dme.org>\r
93 >=20=20\r
94 > +(require 'json)\r
95 >  (require 'message)\r
96 >=20=20\r
97 >  (require 'notmuch-lib)\r
98 > @@ -71,27 +72,62 @@ list."\r
99 >           (push header message-hidden-headers)))\r
100 >       notmuch-mua-hidden-headers))\r
101 >=20=20\r
102 > +(defun w3m-region (start end)) ;; From `w3m.el'.\r
103 \r
104 What is the purpose of the above line?  If it is to make the compiler\r
105 aware of the function, you should use =E2=80=98declare-function=E2=80=99 in=\r
106 stead.  Defun\r
107 will erase the original definition of the w3m-region function.\r
108 \r
109 --=20\r
110 Aaron Ecay\r