Re: [notmuch] OpenPGP support

Subject: Re: [notmuch] OpenPGP support

Date: Thu, 26 Nov 2009 15:01:38 -0800

To: Carl Worth, Jameson Graef Rollins, notmuch@notmuchmail.org

Cc:

From: Keith Packard


On Thu, 26 Nov 2009 10:41:36 -0800, Carl Worth <cworth@cworth.org> 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.

-- 
keith.packard@intel.com
part-000.sig (application/pgp-signature)

Thread: