Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / 8f / 09b0c65dce5cd55c362c915c32474bc57b8351
1 Return-Path: <jani@nikula.org>\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 9AD9E431FBD\r
6         for <notmuch@notmuchmail.org>; Mon, 14 Apr 2014 10:51:43 -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.699\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
12         tests=[HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id 373igepBmwIT for <notmuch@notmuchmail.org>;\r
16         Mon, 14 Apr 2014 10:51:37 -0700 (PDT)\r
17 Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com\r
18         [209.85.220.178]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id DC9CA431FBC\r
21         for <notmuch@notmuchmail.org>; Mon, 14 Apr 2014 10:51:36 -0700 (PDT)\r
22 Received: by mail-vc0-f178.google.com with SMTP id im17so7725830vcb.23\r
23         for <notmuch@notmuchmail.org>; Mon, 14 Apr 2014 10:51:35 -0700 (PDT)\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
25         d=1e100.net; s=20130820;\r
26         h=x-gm-message-state:mime-version:in-reply-to:references:date\r
27         :message-id:subject:from:to:cc:content-type;\r
28         bh=vW3WQ9YPYD+1T6IcJ0ADqVa5Sg7mQt7NZDQX7x/boDw=;\r
29         b=b39xzwrCv8iK2yx467vPMJojkv+26LFIy5oYqlvNHb3q7lJkvTUiTqIVBa3KYRYUj9\r
30         GbNQMbxo4tyyQdD8cehzhK8chOohpQh+Ay0PEwdtKR7A2RO671UI2viLX50/EmNw7gz9\r
31         0KjTUt02jrUvQi09gFHuZG2AJpS/ph9Hz5LbhFP/RMliIQCjX9ePbdB029G0r9CqrXdx\r
32         HI/ly7s3Z4JGjOMEyK5ywJ1ds9m8yNPr77dp1h36QXWFIlE6JFj4j5OKyZ/JwzC67LEU\r
33         QBZtEfsCFUOLurvnXz+URaGU2fHJuHJ60bnOipLLVTw7URYDDmKK8+aZEPJ7NA2nlKMo\r
34         a/jQ==\r
35 X-Gm-Message-State:\r
36  ALoCoQm5mVdT6PTGFQP3Ibvq+I3UVmQn7d7jSiwHvfp1eYhsCawZdiHgfuyJrmsODY4rAzsqKPUo\r
37 MIME-Version: 1.0\r
38 X-Received: by 10.220.92.135 with SMTP id r7mr37624586vcm.11.1397497895097;\r
39         Mon, 14 Apr 2014 10:51:35 -0700 (PDT)\r
40 Received: by 10.58.171.65 with HTTP; Mon, 14 Apr 2014 10:51:35 -0700 (PDT)\r
41 Received: by 10.58.171.65 with HTTP; Mon, 14 Apr 2014 10:51:35 -0700 (PDT)\r
42 In-Reply-To: <8738hf25pa.fsf@maritornes.cs.unb.ca>\r
43 References: <87a9f1c8aq.fsf@servo.finestructure.net>\r
44         <1396689486-19232-1-git-send-email-jani@nikula.org>\r
45         <8738hf25pa.fsf@maritornes.cs.unb.ca>\r
46 Date: Mon, 14 Apr 2014 20:51:35 +0300\r
47 Message-ID:\r
48  <CAB+hUn9YeDY0u4+1=ru6VZVBJar4YfAK=nhORLhOO0EmyO2K_g@mail.gmail.com>\r
49 Subject: Re: [PATCH] emacs: sign/encrypt replies to signed/encrypted messages\r
50 From: Jani Nikula <jani@nikula.org>\r
51 To: David Bremner <david@tethera.net>\r
52 Content-Type: multipart/alternative; boundary=047d7b66f5fb9caa6104f7045533\r
53 Cc: Notmuch Mail <notmuch@notmuchmail.org>\r
54 X-BeenThere: notmuch@notmuchmail.org\r
55 X-Mailman-Version: 2.1.13\r
56 Precedence: list\r
57 List-Id: "Use and development of the notmuch mail system."\r
58         <notmuch.notmuchmail.org>\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
62 List-Post: <mailto:notmuch@notmuchmail.org>\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
66 X-List-Received-Date: Mon, 14 Apr 2014 17:51:43 -0000\r
67 \r
68 --047d7b66f5fb9caa6104f7045533\r
69 Content-Type: text/plain; charset=UTF-8\r
70 \r
71 On Apr 14, 2014 10:17 AM, "David Bremner" <david@tethera.net> wrote:\r
72 >\r
73 > Jani Nikula <jani@nikula.org> writes:\r
74 > > +(defun notmuch-mua-reply-crypto (parts)\r
75 > > +  (loop for part in parts\r
76 > > +     if (notmuch-match-content-type (plist-get part :content-type)\r
77 "multipart/signed")\r
78 > > +       do (mml-secure-message-sign)\r
79 >\r
80 > How do people feel about disabling/removing the previous two lines?\r
81 >\r
82 \r
83 I'd be fine with that (see the commit message).\r
84 \r
85 Jani.\r
86 \r
87 > It's less obvious to me that you always want to sign in reply to a\r
88 > signed message (probably you want to unconditionally always sign in that\r
89 > case).  As written this causes some inconvenience  for users that have\r
90 > notmuch-crypto-process-mime=t to verify inbound signatures, but don't\r
91 > necessarily have the ability to sign outbound mail.\r
92 >\r
93 >\r
94 > > +     else if (notmuch-match-content-type (plist-get part\r
95 :content-type) "multipart/encrypted")\r
96 > > +       do (mml-secure-message-sign-encrypt)\r
97 > > +     else if (notmuch-match-content-type (plist-get part\r
98 :content-type) "multipart/*")\r
99 > > +       do (notmuch-mua-reply-crypto (plist-get part :content))))\r
100 > > +\r
101 \r
102 --047d7b66f5fb9caa6104f7045533\r
103 Content-Type: text/html; charset=UTF-8\r
104 Content-Transfer-Encoding: quoted-printable\r
105 \r
106 <p dir=3D"ltr"><br>\r
107 On Apr 14, 2014 10:17 AM, &quot;David Bremner&quot; &lt;<a href=3D"mailto:d=\r
108 avid@tethera.net">david@tethera.net</a>&gt; wrote:<br>\r
109 &gt;<br>\r
110 &gt; Jani Nikula &lt;<a href=3D"mailto:jani@nikula.org">jani@nikula.org</a>=\r
111 &gt; writes:<br>\r
112 &gt; &gt; +(defun notmuch-mua-reply-crypto (parts)<br>\r
113 &gt; &gt; + =C2=A0(loop for part in parts<br>\r
114 &gt; &gt; + =C2=A0 =C2=A0 if (notmuch-match-content-type (plist-get part :c=\r
115 ontent-type) &quot;multipart/signed&quot;)<br>\r
116 &gt; &gt; + =C2=A0 =C2=A0 =C2=A0 do (mml-secure-message-sign)<br>\r
117 &gt;<br>\r
118 &gt; How do people feel about disabling/removing the previous two lines?<br=\r
119 >\r
120 &gt;</p>\r
121 <p dir=3D"ltr">I&#39;d be fine with that (see the commit message).</p>\r
122 <p dir=3D"ltr">Jani.<br></p>\r
123 <p dir=3D"ltr">&gt; It&#39;s less obvious to me that you always want to sig=\r
124 n in reply to a<br>\r
125 &gt; signed message (probably you want to unconditionally always sign in th=\r
126 at<br>\r
127 &gt; case). =C2=A0As written this causes some inconvenience =C2=A0for users=\r
128  that have<br>\r
129 &gt; notmuch-crypto-process-mime=3Dt to verify inbound signatures, but don&=\r
130 #39;t<br>\r
131 &gt; necessarily have the ability to sign outbound mail.<br>\r
132 &gt;<br>\r
133 &gt;<br>\r
134 &gt; &gt; + =C2=A0 =C2=A0 else if (notmuch-match-content-type (plist-get pa=\r
135 rt :content-type) &quot;multipart/encrypted&quot;)<br>\r
136 &gt; &gt; + =C2=A0 =C2=A0 =C2=A0 do (mml-secure-message-sign-encrypt)<br>\r
137 &gt; &gt; + =C2=A0 =C2=A0 else if (notmuch-match-content-type (plist-get pa=\r
138 rt :content-type) &quot;multipart/*&quot;)<br>\r
139 &gt; &gt; + =C2=A0 =C2=A0 =C2=A0 do (notmuch-mua-reply-crypto (plist-get pa=\r
140 rt :content))))<br>\r
141 &gt; &gt; +<br>\r
142 </p>\r
143 \r
144 --047d7b66f5fb9caa6104f7045533--\r