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 A150E4196F0 for ; Mon, 26 Apr 2010 06:52:43 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.89 X-Spam-Level: X-Spam-Status: No, score=-1.89 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_MIME_NO_TEXT=0.01] autolearn=ham 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 iz+sbneovecw for ; Mon, 26 Apr 2010 06:52:43 -0700 (PDT) Received: from homiemail-a15.g.dreamhost.com (caiajhbdcaid.dreamhost.com [208.97.132.83]) by olra.theworths.org (Postfix) with ESMTP id EE02B431FC1 for ; Mon, 26 Apr 2010 06:52:42 -0700 (PDT) Received: from sspaeth.de (mtec-hg-docking-1-dhcp-204.ethz.ch [129.132.133.204]) (Authenticated sender: sebastian@sspaeth.de) by homiemail-a15.g.dreamhost.com (Postfix) with ESMTPA id D466476C069; Mon, 26 Apr 2010 06:52:40 -0700 (PDT) Received: by sspaeth.de (sSMTP sendmail emulation); Mon, 26 Apr 2010 15:52:38 +0200 From: "Sebastian Spaeth" To: Jameson Rollins , notmuch@notmuchmail.org Subject: Re: Kudos! Also: +1 PGP! In-Reply-To: <87zl0qihvj.fsf@servo.finestructure.net> References: <87r5m3gy1u.fsf@bookbinder.fernseed.info> <87zl0qihvj.fsf@servo.finestructure.net> User-Agent: Notmuch/0.2-208-g8c0218a (http://notmuchmail.org) Emacs/23.1.1 (x86_64-pc-linux-gnu) Date: Mon, 26 Apr 2010 15:52:37 +0200 Message-ID: <87pr1mz5ga.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; 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: Mon, 26 Apr 2010 13:52:43 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable We were discussing on IRC whether decryption should be handled in notmuch show --decrypt or in emacs and I had a quick look at what it would take for emacs. Here is a snippet of code that outputs "Good signature from 5585F58CC827A062 Sebastian Spaeth (Private Communication) (trust ultimate) created at 2010-04-26T14:27:07+0200 using DSA" in the minibuffer. I guess something based on this could be used to parse the email and try to decrypt via gpg and mark the signature status in the summary line: (save-excursion=20 (let ((context (epg-make-context)) (signature "-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkvVhpsACgkQVYX1jMgnoGJx4wCfXYKGdlc6HixqGwvWL4E+9t+M QusAnA97NGdSLBFH6LeS3F8x3tAMd8td =3D2nbO =2D----END PGP SIGNATURE-----") (signed-text " teste ")) (epg-verify-string context signature signed-text) (let ((result (epg-context-result context))) (message (epg-verify-result-to-string (cdr (car result)))) ))) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkvVmqYACgkQVYX1jMgnoGJf6ACgi+sIDt2z5WgOL4QOyyTgFBh5 vOsAn16toRLHeIDOqfqXGzFD6rg1DmNA =Veod -----END PGP SIGNATURE----- --=-=-=--