Re: [RFC PATCH 5/5] cli: add support for deduplicating based on case insensitive...
[notmuch-archives.git] / 4d / 3a05cbe68fcac59d41b67b9e06f9b3b7005bb0
1 Return-Path: <david@tethera.net>\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 4D2AA431FBD\r
6         for <notmuch@notmuchmail.org>; Mon, 14 Apr 2014 10:17:40 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 gcVrsY7dE69C for <notmuch@notmuchmail.org>;\r
16         Mon, 14 Apr 2014 10:17:36 -0700 (PDT)\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
18         [87.98.215.224]) (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id EB973431FBC\r
21         for <notmuch@notmuchmail.org>; Mon, 14 Apr 2014 10:17:35 -0700 (PDT)\r
22 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
23         4.72) (envelope-from <david@tethera.net>)\r
24         id 1WZkTe-0005mS-Hy; Mon, 14 Apr 2014 17:15:26 +0000\r
25 Received: (nullmailer pid 3709 invoked by uid 1000); Mon, 14 Apr 2014\r
26         17:15:13 -0000\r
27 From: David Bremner <david@tethera.net>\r
28 To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org\r
29 Subject: Re: [PATCH] emacs: sign/encrypt replies to signed/encrypted messages\r
30 In-Reply-To: <1396689486-19232-1-git-send-email-jani@nikula.org>\r
31 References: <87a9f1c8aq.fsf@servo.finestructure.net>\r
32         <1396689486-19232-1-git-send-email-jani@nikula.org>\r
33 User-Agent: Notmuch/0.17+174~g4efbc9f (http://notmuchmail.org) Emacs/24.3.1\r
34         (x86_64-pc-linux-gnu)\r
35 Date: Mon, 14 Apr 2014 14:15:13 -0300\r
36 Message-ID: <8738hf25pa.fsf@maritornes.cs.unb.ca>\r
37 MIME-Version: 1.0\r
38 Content-Type: text/plain\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.13\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43         <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Mon, 14 Apr 2014 17:17:40 -0000\r
52 \r
53 Jani Nikula <jani@nikula.org> writes:\r
54 > +(defun notmuch-mua-reply-crypto (parts)\r
55 > +  (loop for part in parts\r
56 > +     if (notmuch-match-content-type (plist-get part :content-type) "multipart/signed")\r
57 > +       do (mml-secure-message-sign)\r
58 \r
59 How do people feel about disabling/removing the previous two lines?\r
60 \r
61 It's less obvious to me that you always want to sign in reply to a\r
62 signed message (probably you want to unconditionally always sign in that\r
63 case).  As written this causes some inconvenience  for users that have\r
64 notmuch-crypto-process-mime=t to verify inbound signatures, but don't\r
65 necessarily have the ability to sign outbound mail. \r
66 \r
67 \r
68 > +     else if (notmuch-match-content-type (plist-get part :content-type) "multipart/encrypted")\r
69 > +       do (mml-secure-message-sign-encrypt)\r
70 > +     else if (notmuch-match-content-type (plist-get part :content-type) "multipart/*")\r
71 > +       do (notmuch-mua-reply-crypto (plist-get part :content))))\r
72 > +\r