Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id CF28B429E39 for ; Wed, 25 Jan 2012 09:45:07 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.29 X-Spam-Level: X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 vHzdedu8SF2V for ; Wed, 25 Jan 2012 09:45:07 -0800 (PST) Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu [131.215.239.19]) by olra.theworths.org (Postfix) with ESMTP id 40DDA431FBC for ; Wed, 25 Jan 2012 09:45:07 -0800 (PST) Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1]) by fire-doxen-postvirus (Postfix) with ESMTP id B2012328092; Wed, 25 Jan 2012 09:45:06 -0800 (PST) X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new Received: from finestructure.net (cpe-76-174-137-84.socal.res.rr.com [76.174.137.84]) (Authenticated sender: jrollins) by fire-doxen-submit (Postfix) with ESMTP id F048A328094; Wed, 25 Jan 2012 09:45:03 -0800 (PST) Received: by finestructure.net (Postfix, from userid 1000) id 9EC9E2A9; Wed, 25 Jan 2012 09:45:03 -0800 (PST) From: Jameson Graef Rollins To: David Edmondson , Notmuch Mail Subject: Re: Emacs: Crypto: How to get automatic encryption? In-Reply-To: References: <87pqejj5nl.fsf@marcos.anarcat.ath.cx> <87ehuo7pjr.fsf@algae.riseup.net> <87ehuoljzs.fsf@servo.finestructure.net> <87liow6slg.fsf@servo.finestructure.net> User-Agent: Notmuch/0.11+115~g51d071f (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Wed, 25 Jan 2012 09:45:01 -0800 Message-ID: <878vkv7k2q.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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, 25 Jan 2012 17:45:07 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Wed, 25 Jan 2012 10:20:26 +0000, David Edmondson wrote: > Isn't it still necessary to ensure that you have encryption keys > appropriate to the recipient? I want to ensure that all replies to encrypted to be encrypted. I would rather have the reply fail outright than fall back to unencrypted. Here's a behavior that I think would be reasonable: * notmuch reply outputs JSON encrypted flag * emacs does a quick check to see if the needed key is available * if key not available: give a nice mini-buffer prompt, something like: =20 'encryption key for "Foo Bar " not found. Retrieve?' * if response is yes: call gpg to retrieve the key * if key available: add encrypt flag else: I feel like this should abort, but maybe there's something to be done here. Allow reply but don't quote the original? jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJPID+dAAoJEO00zqvie6q8B7oP/0jggtsnGKAy0yuVUXbXSu+X vyNNKwbG2EHVW0wYA7QkHtTQfClkUXPZLWWwyEw0L2LBT3TViDpyCtwu2/fOHEvH 7kv/uS8xGj6hwtVboOjeoZnTTW/M9k+mLMEEkyX/WWX5+2TVVUJxRjWZuf2feMgs 5R72vtIowlWIIyN5LQjxxxkX+3+yHEOG9RcZWO4vGCfF+UWRWQDc7pl3is5AIq8v 8bHMmqiARLqb4HXQZItGHwcKIQUm3SiJeDddvMKc7DC/TKMLGd9SAiDKCcDLKC2Z eXviRL81B2rm0xlV/Sh3XnesWOfx2ZGmszmYdlA+LEdZ54QSO/rE0PDy+cWwJ98m iWck+RFyHKcIp/w8mJMCWriKWJoRVKB/vqbP9Fk2LlnB71lVBUXOqLM3RxddIkXN avaO2nORPEs7TUumyeAwrzMrkmv62Isx7Fx89z7vwrLh91pPbAOgsoV6EQPCHzwR RS6BvUfLRr9XHcy/yVEvLZJSyiTIPXYPxnhLOYd0x8bs8hfjYNMO6vj2PogR9oUG HmO3U7AGS4u5wrOykN6F8qTbDuA4YBqJBBexUrWCnUAMuTj9W5zs3i2GKp8l0/IJ LxGPIDgVNwDWQR/bNomMOLIEgFuKM3eE1V7nqiaPJLYj/aK7NWAcM60lUU9sfN2n zd4ILBrLkOz9fNp9U0FD =PETs -----END PGP SIGNATURE----- --=-=-=--