1 Return-Path: <Sebastian@SSpaeth.de>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id A150E4196F0
\r
6 for <notmuch@notmuchmail.org>; Mon, 26 Apr 2010 06:52:43 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-1.89 tagged_above=-999 required=5
\r
12 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_MIME_NO_TEXT=0.01]
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id iz+sbneovecw for <notmuch@notmuchmail.org>;
\r
17 Mon, 26 Apr 2010 06:52:43 -0700 (PDT)
\r
18 Received: from homiemail-a15.g.dreamhost.com (caiajhbdcaid.dreamhost.com
\r
20 by olra.theworths.org (Postfix) with ESMTP id EE02B431FC1
\r
21 for <notmuch@notmuchmail.org>; Mon, 26 Apr 2010 06:52:42 -0700 (PDT)
\r
22 Received: from sspaeth.de (mtec-hg-docking-1-dhcp-204.ethz.ch
\r
23 [129.132.133.204]) (Authenticated sender: sebastian@sspaeth.de)
\r
24 by homiemail-a15.g.dreamhost.com (Postfix) with ESMTPA id D466476C069;
\r
25 Mon, 26 Apr 2010 06:52:40 -0700 (PDT)
\r
26 Received: by sspaeth.de (sSMTP sendmail emulation);
\r
27 Mon, 26 Apr 2010 15:52:38 +0200
\r
28 From: "Sebastian Spaeth" <Sebastian@SSpaeth.de>
\r
29 To: Jameson Rollins <jrollins@finestructure.net>, notmuch@notmuchmail.org
\r
30 Subject: Re: Kudos! Also: +1 PGP!
\r
31 In-Reply-To: <87zl0qihvj.fsf@servo.finestructure.net>
\r
32 References: <87r5m3gy1u.fsf@bookbinder.fernseed.info>
\r
33 <87zl0qihvj.fsf@servo.finestructure.net>
\r
34 User-Agent: Notmuch/0.2-208-g8c0218a (http://notmuchmail.org) Emacs/23.1.1
\r
35 (x86_64-pc-linux-gnu)
\r
36 Date: Mon, 26 Apr 2010 15:52:37 +0200
\r
37 Message-ID: <87pr1mz5ga.fsf@SSpaeth.de>
\r
39 Content-Type: multipart/signed; boundary="=-=-=";
\r
40 micalg=pgp-sha1; protocol="application/pgp-signature"
\r
41 X-BeenThere: notmuch@notmuchmail.org
\r
42 X-Mailman-Version: 2.1.13
\r
44 List-Id: "Use and development of the notmuch mail system."
\r
45 <notmuch.notmuchmail.org>
\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
47 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
49 List-Post: <mailto:notmuch@notmuchmail.org>
\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
52 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
53 X-List-Received-Date: Mon, 26 Apr 2010 13:52:43 -0000
\r
56 Content-Transfer-Encoding: quoted-printable
\r
59 We were discussing on IRC whether decryption should be handled in
\r
60 notmuch show --decrypt or in emacs and I had a quick look at what it
\r
61 would take for emacs. Here is a snippet of code that outputs
\r
62 "Good signature from 5585F58CC827A062 Sebastian Spaeth (Private
\r
63 Communication) <Sebastian@SSpaeth.de> (trust ultimate) created at
\r
64 2010-04-26T14:27:07+0200 using DSA" in the minibuffer. I guess something
\r
65 based on this could be used to parse the email and try to decrypt via gpg
\r
66 and mark the signature status in the summary line:
\r
69 (let ((context (epg-make-context))
\r
70 (signature "-----BEGIN PGP SIGNATURE-----
\r
71 Version: GnuPG v1.4.10 (GNU/Linux)
\r
73 iEYEARECAAYFAkvVhpsACgkQVYX1jMgnoGJx4wCfXYKGdlc6HixqGwvWL4E+9t+M
\r
74 QusAnA97NGdSLBFH6LeS3F8x3tAMd8td
\r
76 =2D----END PGP SIGNATURE-----")
\r
80 (epg-verify-string context signature signed-text)
\r
81 (let ((result (epg-context-result context)))
\r
82 (message (epg-verify-result-to-string (cdr (car result))))
\r
86 Content-Type: application/pgp-signature
\r
88 -----BEGIN PGP SIGNATURE-----
\r
89 Version: GnuPG v1.4.10 (GNU/Linux)
\r
91 iEYEARECAAYFAkvVmqYACgkQVYX1jMgnoGJf6ACgi+sIDt2z5WgOL4QOyyTgFBh5
\r
92 vOsAn16toRLHeIDOqfqXGzFD6rg1DmNA
\r
94 -----END PGP SIGNATURE-----
\r