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