Re: Emacs: Crypto: How to get automatic encryption?
authorJameson Graef Rollins <jrollins@finestructure.net>
Tue, 3 Jan 2012 21:45:14 +0000 (13:45 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:41:36 +0000 (09:41 -0800)
43/487aea9758631e2daff2bfcf0f60b19fb97a67 [new file with mode: 0644]

diff --git a/43/487aea9758631e2daff2bfcf0f60b19fb97a67 b/43/487aea9758631e2daff2bfcf0f60b19fb97a67
new file mode 100644 (file)
index 0000000..17fcbb1
--- /dev/null
@@ -0,0 +1,132 @@
+Return-Path: <jrollins@finestructure.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id C7825429E42\r
+       for <notmuch@notmuchmail.org>; Tue,  3 Jan 2012 13:45:26 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.29\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id VsxVA1sNUxUd for <notmuch@notmuchmail.org>;\r
+       Tue,  3 Jan 2012 13:45:26 -0800 (PST)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id 5438A431FD0\r
+       for <notmuch@notmuchmail.org>; Tue,  3 Jan 2012 13:45:26 -0800 (PST)\r
+Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by earth-doxen-postvirus (Postfix) with ESMTP id 62B3C66E0137;\r
+       Tue,  3 Jan 2012 13:45:20 -0800 (PST)\r
+X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
+Received: from finestructure.net (DHCP-123-180.caltech.edu [131.215.123.180])\r
+       (Authenticated sender: jrollins)\r
+       by earth-doxen-submit (Postfix) with ESMTP id 710B166E0089;\r
+       Tue,  3 Jan 2012 13:45:17 -0800 (PST)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id 4967594C; Tue,  3 Jan 2012 13:45:17 -0800 (PST)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Gregor Zattler <telegraph@gmx.net>, Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: Re: Emacs: Crypto: How to get automatic encryption?\r
+In-Reply-To: <20120103195651.GA27869@shi.workgroup>\r
+References: <20120103195651.GA27869@shi.workgroup>\r
+User-Agent: Notmuch/0.10.2+138~g0b4049e (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Tue, 03 Jan 2012 13:45:14 -0800\r
+Message-ID: <87fwfw8npx.fsf@servo.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha256; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 03 Jan 2012 21:45:27 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Tue, 3 Jan 2012 20:56:51 +0100, Gregor Zattler <telegraph@gmx.net> wrote:\r
+> I replied to a PGP/MIME signed and encrypted e-mail and was\r
+> astonished to realise that my reply was sent unencrypted (and\r
+> unsigened for that matter).\r
+\r
+Yikes!  Sorry this happened, and I hope nothing too sensitive was\r
+exposed.\r
+\r
+Auto signing of outgoing mail can be enabled by the following [0]:\r
+\r
+(add-hook 'message-setup-hook mml-secure-message-sign-pgpmime)\r
+\r
+You can configure the message-setup-hook with the customization UI as\r
+well.\r
+\r
+Unfortunately, auto encrypting of replies to encrypted emails is not yet\r
+implemented.  It is desperately needed, though, obviously.  So this is a\r
+good excuse to start a discussion about how we could achieve this.\r
+\r
+It just occurs to me that a way to do this would be to have notmuch\r
+reply add the appropriate mml #secure tag for encryption to the output\r
+reply template, maybe with something like a --emacs option.  That would\r
+be pretty easy to implement, although it would obviously be very UI\r
+specific.\r
+\r
+Another possibility would be for notmuch reply to add some sort of\r
+header to the reply message to indicate that the original was encrypted,\r
+and then do something in emacs to try to read that header and add the\r
+appropriate mml #secure tag.  That would also be easy to implement in\r
+the notmuch CLI, and it would be more UI agnostic, but it would require\r
+a lot more elisp.\r
+\r
+Or maybe we could support both?\r
+\r
+Any other suggestions?\r
+\r
+> Actually the message buffer in which I write replies has Auto\r
+> Encryption Mode enabled, but nothing happens.=20=20\r
+\r
+That's unfortunate.  Can you explain exactly how you set this up, and\r
+how it didn't work?\r
+\r
+> Till now I investigated customisable variables for notmuch,\r
+> message mode, epg but did not find a way to tell Emacs to sign\r
+> and encrypt an e-mail if the correspondent (signed and) and\r
+> encrypted her/his e-mail.=20=20\r
+\r
+It's actually usually mml that is used with message-mode to\r
+sign/encrypt message, not epg.\r
+\r
+jamie.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJPA3brAAoJEO00zqvie6q86FcP/1rtuNLl4G8atdsEx9KrF3TJ\r
+blVoSYSfunjDNThu4TuC8qP4cHVhMy9dyhbu9jBJQfI89x8pogJvTFb1cgs+5ZDe\r
+oYi7sDEwvg+2zEzGLRgxZDvv3OSx7KGiUa8Kr6Iv0Kl/cx/3oORxfdAfrVum7ceB\r
+UYkLc/ZmbfXivUufnCeHxqhOTRBY3EYIzuK/5BT92glbB7tq8XCjqUGmTshtAhoq\r
+gpLErF2yJlEjM/vHl1rApLFh6lj9rL2TfJ11fUpEokfeVtgRS6OCiq1ix4fD9JSZ\r
+Pl0hCeNUf/5NH6Fk3p7O1yZjsNOMhVMH3pp3SC7M3rmnBuBGs7ZfDzeRCzSpaoqJ\r
+uWzKbV35sgvrU0Yu2qRbJwkk0bpKsYe7bb/StxzNX+TsI6Nvj0uoF+7DU1OMFow0\r
+KAhyTx1tgzZDAEoOkicD8sctfvAXKGTnueBbEsigdFCioQJFidZpl/88ZqGJzDY2\r
+rHoms2zVsWZCqKyc1nEfx9r5qWCKYT8IaRdc6QU5KLjSail70XMxtW4beXUKk3kD\r
+ZnUqluMTG0lgKganPpmnLLhOQP3KlRleNnuWhBscYgHqIGQsGHBQcy3awoRgxaUR\r
+9LZQpEhkE3nXjB9cggwSCpPDyrDR7FfhSG4kI2KclpEMMYBPBFSQdtac2ws1GdQb\r
+ACpme5AVvm7h4ipcMoF6\r
+=NNhQ\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r