"snoozing" with notmuch?
[notmuch-archives.git] / 72 / 48df3560e5d10479711863951cab52de636c59
1 Return-Path: <keithp@keithp.com>\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 74F8F431FC0\r
6         for <notmuch@notmuchmail.org>; Thu, 26 Nov 2009 15:01:50 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id 1du16ZTOIZ-U for <notmuch@notmuchmail.org>;\r
11         Thu, 26 Nov 2009 15:01:49 -0800 (PST)\r
12 Received: from keithp.com (home.keithp.com [63.227.221.253])\r
13         by olra.theworths.org (Postfix) with ESMTP id A54FE431FAE\r
14         for <notmuch@notmuchmail.org>; Thu, 26 Nov 2009 15:01:49 -0800 (PST)\r
15 Received: from localhost (localhost [127.0.0.1])\r
16         by keithp.com (Postfix) with ESMTP id DFAB2760093;\r
17         Thu, 26 Nov 2009 15:01:48 -0800 (PST)\r
18 X-Virus-Scanned: Debian amavisd-new at keithp.com\r
19 Received: from keithp.com ([127.0.0.1])\r
20         by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024)\r
21         with LMTP id kKeW6NOqvqUq; Thu, 26 Nov 2009 15:01:45 -0800 (PST)\r
22 Received: by keithp.com (Postfix, from userid 1033)\r
23         id AABC476012A; Thu, 26 Nov 2009 15:01:45 -0800 (PST)\r
24 Received: from keithp.com (localhost [127.0.0.1])\r
25         by keithp.com (Postfix) with ESMTP id 6A5BE760093;\r
26         Thu, 26 Nov 2009 15:01:45 -0800 (PST)\r
27 From: Keith Packard <keithp@keithp.com>\r
28 To: Carl Worth <cworth@cworth.org>, Jameson Graef Rollins\r
29         <jrollins@finestructure.net>, notmuch@notmuchmail.org\r
30 In-Reply-To: <87zl69qgbj.fsf@yoom.home.cworth.org>\r
31 References: <20091123130009.GA31695@finestructure.net>\r
32         <87zl69qgbj.fsf@yoom.home.cworth.org>\r
33 Date: Thu, 26 Nov 2009 15:01:38 -0800\r
34 Message-ID: <yunfx80evql.fsf@aiko.keithp.com>\r
35 MIME-Version: 1.0\r
36 Content-Type: multipart/signed; boundary="=-=-=";\r
37         micalg=pgp-sha1; protocol="application/pgp-signature"\r
38 Subject: Re: [notmuch] OpenPGP support\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.12\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43         <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Thu, 26 Nov 2009 23:01:50 -0000\r
52 \r
53 --=-=-=\r
54 Content-Transfer-Encoding: quoted-printable\r
55 \r
56 On Thu, 26 Nov 2009 10:41:36 -0800, Carl Worth <cworth@cworth.org> wrote:\r
57 \r
58 > I'm not sure how to make sure that I also get that when doing a reply\r
59 > within notmuch. Keith, I think you worked this out, right? What did you\r
60 > do?\r
61 \r
62 ; sign messages by default\r
63 (defun my-notmuch-message-mode-hook()\r
64   (if (buffer-modified-p)\r
65       (mml-secure-message-sign)))\r
66 \r
67 (add-hook 'message-mode-hook 'my-notmuch-message-mode-hook)\r
68 (add-hook 'message-setup-hook 'my-notmuch-message-mode-hook)\r
69 \r
70 The message-setup-hook is called for new messages, the message-mode-hook\r
71 is called for both; the hack is to check for the reply case by looking\r
72 to see if the buffer has been modified as the message mode hook gets\r
73 called on an empty buffer in the new message case.\r
74 \r
75 =2D-=20\r
76 keith.packard@intel.com\r
77 \r
78 --=-=-=\r
79 Content-Type: application/pgp-signature\r
80 \r
81 -----BEGIN PGP SIGNATURE-----\r
82 Version: GnuPG v1.4.10 (GNU/Linux)\r
83 \r
84 iD8DBQFLDwjSQp8BWwlsTdMRAjodAJ9JzXjzcizGCj1SU37WcP7SQ0+UvACglFRg\r
85 Kkd08qviRJex0K7iiRJvrUc=\r
86 =4Qhd\r
87 -----END PGP SIGNATURE-----\r
88 --=-=-=--\r