Re: [notmuch] OpenPGP support
authorKeith Packard <keithp@keithp.com>
Thu, 26 Nov 2009 23:01:38 +0000 (15:01 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:44 +0000 (09:35 -0800)
72/48df3560e5d10479711863951cab52de636c59 [new file with mode: 0644]

diff --git a/72/48df3560e5d10479711863951cab52de636c59 b/72/48df3560e5d10479711863951cab52de636c59
new file mode 100644 (file)
index 0000000..72b92e6
--- /dev/null
@@ -0,0 +1,88 @@
+Return-Path: <keithp@keithp.com>\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 74F8F431FC0\r
+       for <notmuch@notmuchmail.org>; Thu, 26 Nov 2009 15:01:50 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\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 1du16ZTOIZ-U for <notmuch@notmuchmail.org>;\r
+       Thu, 26 Nov 2009 15:01:49 -0800 (PST)\r
+Received: from keithp.com (home.keithp.com [63.227.221.253])\r
+       by olra.theworths.org (Postfix) with ESMTP id A54FE431FAE\r
+       for <notmuch@notmuchmail.org>; Thu, 26 Nov 2009 15:01:49 -0800 (PST)\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by keithp.com (Postfix) with ESMTP id DFAB2760093;\r
+       Thu, 26 Nov 2009 15:01:48 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at keithp.com\r
+Received: from keithp.com ([127.0.0.1])\r
+       by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024)\r
+       with LMTP id kKeW6NOqvqUq; Thu, 26 Nov 2009 15:01:45 -0800 (PST)\r
+Received: by keithp.com (Postfix, from userid 1033)\r
+       id AABC476012A; Thu, 26 Nov 2009 15:01:45 -0800 (PST)\r
+Received: from keithp.com (localhost [127.0.0.1])\r
+       by keithp.com (Postfix) with ESMTP id 6A5BE760093;\r
+       Thu, 26 Nov 2009 15:01:45 -0800 (PST)\r
+From: Keith Packard <keithp@keithp.com>\r
+To: Carl Worth <cworth@cworth.org>, Jameson Graef Rollins\r
+       <jrollins@finestructure.net>, notmuch@notmuchmail.org\r
+In-Reply-To: <87zl69qgbj.fsf@yoom.home.cworth.org>\r
+References: <20091123130009.GA31695@finestructure.net>\r
+       <87zl69qgbj.fsf@yoom.home.cworth.org>\r
+Date: Thu, 26 Nov 2009 15:01:38 -0800\r
+Message-ID: <yunfx80evql.fsf@aiko.keithp.com>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+Subject: Re: [notmuch] OpenPGP support\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\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: Thu, 26 Nov 2009 23:01:50 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Thu, 26 Nov 2009 10:41:36 -0800, Carl Worth <cworth@cworth.org> wrote:\r
+\r
+> I'm not sure how to make sure that I also get that when doing a reply\r
+> within notmuch. Keith, I think you worked this out, right? What did you\r
+> do?\r
+\r
+; sign messages by default\r
+(defun my-notmuch-message-mode-hook()\r
+  (if (buffer-modified-p)\r
+      (mml-secure-message-sign)))\r
+\r
+(add-hook 'message-mode-hook 'my-notmuch-message-mode-hook)\r
+(add-hook 'message-setup-hook 'my-notmuch-message-mode-hook)\r
+\r
+The message-setup-hook is called for new messages, the message-mode-hook\r
+is called for both; the hack is to check for the reply case by looking\r
+to see if the buffer has been modified as the message mode hook gets\r
+called on an empty buffer in the new message case.\r
+\r
+=2D-=20\r
+keith.packard@intel.com\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.10 (GNU/Linux)\r
+\r
+iD8DBQFLDwjSQp8BWwlsTdMRAjodAJ9JzXjzcizGCj1SU37WcP7SQ0+UvACglFRg\r
+Kkd08qviRJex0K7iiRJvrUc=\r
+=4Qhd\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r