Re: Emacs: Crypto: How to get automatic encryption?
authorGregor Zattler <Gregor@shi>
Wed, 4 Jan 2012 00:08:33 +0000 (01:08 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:41:36 +0000 (09:41 -0800)
02/878c243e3a4b5bc6a95bede1b00ac86086b0a5 [new file with mode: 0644]

diff --git a/02/878c243e3a4b5bc6a95bede1b00ac86086b0a5 b/02/878c243e3a4b5bc6a95bede1b00ac86086b0a5
new file mode 100644 (file)
index 0000000..2b9058b
--- /dev/null
@@ -0,0 +1,132 @@
+Return-Path: <error4me@gmx.de>\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 231AD429E42\r
+       for <notmuch@notmuchmail.org>; Tue,  3 Jan 2012 16:08:39 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.181\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.181 tagged_above=-999 required=5\r
+       tests=[FH_FROMEML_NOTLD=0.18, FREEMAIL_FROM=0.001,\r
+       RCVD_IN_DNSWL_NONE=-0.0001] 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 2y8qMILswpnw for <notmuch@notmuchmail.org>;\r
+       Tue,  3 Jan 2012 16:08:38 -0800 (PST)\r
+Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22])\r
+       by olra.theworths.org (Postfix) with SMTP id 2D090431FD0\r
+       for <notmuch@notmuchmail.org>; Tue,  3 Jan 2012 16:08:38 -0800 (PST)\r
+Received: (qmail invoked by alias); 04 Jan 2012 00:08:36 -0000\r
+Received: from p54BE4204.dip.t-dialin.net (EHLO shi.workgroup) [84.190.66.4]\r
+       by mail.gmx.net (mp062) with SMTP; 04 Jan 2012 01:08:36 +0100\r
+X-Authenticated: #19296480\r
+X-Provags-ID: V01U2FsdGVkX18DdYZxM+0DoXyFurUz4eHzEPMB2aLPbDWPaTZBFj\r
+       FtZr/x0c+Scgvv\r
+Received: from grfz by shi.workgroup with local (Exim 4.77)\r
+       (envelope-from <error4me@gmx.de>)\r
+       id 1RiEPB-0005so-Df; Wed, 04 Jan 2012 01:08:33 +0100\r
+From: Gregor Zattler <Gregor@shi>\r
+To: Jameson Graef Rollins <jrollins@finestructure.net>,\r
+       Gregor Zattler <telegraph@gmx.net>, Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: Re: Emacs: Crypto: How to get automatic encryption?\r
+In-Reply-To: <87fwfw8npx.fsf@servo.finestructure.net>\r
+References: <20120103195651.GA27869@shi.workgroup>\r
+       <87fwfw8npx.fsf@servo.finestructure.net>\r
+User-Agent: Notmuch/0.10.2 (http://notmuchmail.org) Emacs/23.3.1\r
+       (i486-pc-linux-gnu)\r
+Mail-Followup-To: Jameson Graef Rollins <jrollins@finestructure.net>, Gregor\r
+       Zattler <telegraph@gmx.net>, Notmuch Mail <notmuch@notmuchmail.org>\r
+Date: Wed, 04 Jan 2012 01:08:33 +0100\r
+Message-ID: <87y5toqqgu.fsf@shi.workgroup>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Y-GMX-Trusted: 0\r
+X-Mailman-Approved-At: Wed, 11 Jan 2012 18:03:20 -0800\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: Wed, 04 Jan 2012 00:08:39 -0000\r
+\r
+Hi Jamie, notmuch developers,\r
+On Tue, 03 Jan 2012 13:45:14 -0800, Jameson Graef Rollins <jrollins@finestructure.net> wrote:\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
+No :-)\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
+I tried this and enabled mml-secure-message-encrypt-pgpmime too.\r
+I did a test with an address I have no public key for.  I was\r
+informed of the fact and asked if I want to skip this key.  The\r
+result was an email encrypted only to me (I suppose it's a\r
+sensible default to include the key of the sender in the list of\r
+key to encrypt to), so it would be unreadable for the recipient :-(\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
+I'm no developer; your second suggestion sounds more plausible\r
+me since notmuch is a frontend-agnostic mail system.\r
+\r
+> > Actually the message buffer in which I write replies has Auto\r
+> > Encryption Mode enabled, but nothing happens.  \r
+> \r
+> That's unfortunate.  Can you explain exactly how you set this up, and\r
+> how it didn't work?\r
+\r
+Actually I did not set it up.  I tested this again with emacs23\r
+-q ...  It has something to do with EasyPG and therefore I assume\r
+it only works on the level of file encryption if the file\r
+associated with the buffer ends in .pgp  But that's a guess.\r
+\r
+\r
+[...]\r
+> It's actually usually mml that is used with message-mode to\r
+> sign/encrypt message, not epg.\r
+\r
+Thanks for your info.  Actually I'm a mutt user and I customised\r
+mutt to opportunistically encrypt emails if I/gpg have/has public\r
+keys for all recipients of an email.  I have no clue how to\r
+achieve this with Emacs.\r
+\r
+Ciao; Gregor\r