From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 231AD429E42 for ; Tue, 3 Jan 2012 16:08:39 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.181 X-Spam-Level: X-Spam-Status: No, score=0.181 tagged_above=-999 required=5 tests=[FH_FROMEML_NOTLD=0.18, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2y8qMILswpnw for ; Tue, 3 Jan 2012 16:08:38 -0800 (PST) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by olra.theworths.org (Postfix) with SMTP id 2D090431FD0 for ; Tue, 3 Jan 2012 16:08:38 -0800 (PST) Received: (qmail invoked by alias); 04 Jan 2012 00:08:36 -0000 Received: from p54BE4204.dip.t-dialin.net (EHLO shi.workgroup) [84.190.66.4] by mail.gmx.net (mp062) with SMTP; 04 Jan 2012 01:08:36 +0100 X-Authenticated: #19296480 X-Provags-ID: V01U2FsdGVkX18DdYZxM+0DoXyFurUz4eHzEPMB2aLPbDWPaTZBFj FtZr/x0c+Scgvv Received: from grfz by shi.workgroup with local (Exim 4.77) (envelope-from ) id 1RiEPB-0005so-Df; Wed, 04 Jan 2012 01:08:33 +0100 From: Gregor Zattler To: Jameson Graef Rollins , Gregor Zattler , Notmuch Mail Subject: Re: Emacs: Crypto: How to get automatic encryption? In-Reply-To: <87fwfw8npx.fsf@servo.finestructure.net> References: <20120103195651.GA27869@shi.workgroup> <87fwfw8npx.fsf@servo.finestructure.net> User-Agent: Notmuch/0.10.2 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu) Mail-Followup-To: Jameson Graef Rollins , Gregor Zattler , Notmuch Mail Date: Wed, 04 Jan 2012 01:08:33 +0100 Message-ID: <87y5toqqgu.fsf@shi.workgroup> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-Mailman-Approved-At: Wed, 11 Jan 2012 18:03:20 -0800 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2012 00:08:39 -0000 Hi Jamie, notmuch developers, On Tue, 03 Jan 2012 13:45:14 -0800, Jameson Graef Rollins wrote: > On Tue, 3 Jan 2012 20:56:51 +0100, Gregor Zattler wrote: > > I replied to a PGP/MIME signed and encrypted e-mail and was > > astonished to realise that my reply was sent unencrypted (and > > unsigened for that matter). > > Yikes! Sorry this happened, and I hope nothing too sensitive was > exposed. No :-) > Auto signing of outgoing mail can be enabled by the following [0]: > > (add-hook 'message-setup-hook mml-secure-message-sign-pgpmime) > > You can configure the message-setup-hook with the customization UI as > well. I tried this and enabled mml-secure-message-encrypt-pgpmime too. I did a test with an address I have no public key for. I was informed of the fact and asked if I want to skip this key. The result was an email encrypted only to me (I suppose it's a sensible default to include the key of the sender in the list of key to encrypt to), so it would be unreadable for the recipient :-( > Unfortunately, auto encrypting of replies to encrypted emails is not yet > implemented. It is desperately needed, though, obviously. So this is a > good excuse to start a discussion about how we could achieve this. > > It just occurs to me that a way to do this would be to have notmuch > reply add the appropriate mml #secure tag for encryption to the output > reply template, maybe with something like a --emacs option. That would > be pretty easy to implement, although it would obviously be very UI > specific. > > Another possibility would be for notmuch reply to add some sort of > header to the reply message to indicate that the original was encrypted, > and then do something in emacs to try to read that header and add the > appropriate mml #secure tag. That would also be easy to implement in > the notmuch CLI, and it would be more UI agnostic, but it would require > a lot more elisp. > > Or maybe we could support both? > > Any other suggestions? I'm no developer; your second suggestion sounds more plausible me since notmuch is a frontend-agnostic mail system. > > Actually the message buffer in which I write replies has Auto > > Encryption Mode enabled, but nothing happens. > > That's unfortunate. Can you explain exactly how you set this up, and > how it didn't work? Actually I did not set it up. I tested this again with emacs23 -q ... It has something to do with EasyPG and therefore I assume it only works on the level of file encryption if the file associated with the buffer ends in .pgp But that's a guess. [...] > It's actually usually mml that is used with message-mode to > sign/encrypt message, not epg. Thanks for your info. Actually I'm a mutt user and I customised mutt to opportunistically encrypt emails if I/gpg have/has public keys for all recipients of an email. I have no clue how to achieve this with Emacs. Ciao; Gregor