unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Keith Packard <keithp@keithp.com>
To: Carl Worth <cworth@cworth.org>,
	Jameson Graef Rollins <jrollins@finestructure.net>,
	notmuch@notmuchmail.org
Subject: Re: OpenPGP support
Date: Thu, 26 Nov 2009 15:01:38 -0800	[thread overview]
Message-ID: <yunfx80evql.fsf@aiko.keithp.com> (raw)
In-Reply-To: <87zl69qgbj.fsf@yoom.home.cworth.org>

[-- Attachment #1: Type: text/plain, Size: 790 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2009-11-26 23:01 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-23 13:00 OpenPGP support Jameson Graef Rollins
2009-11-26  6:01 ` Jameson Graef Rollins
2009-11-26  7:08   ` Aneesh Kumar K. V
2009-11-26 18:31     ` Jameson Graef Rollins
2009-11-26 19:12       ` Carl Worth
2010-01-08  2:56   ` indexing encrypted messages (was: OpenPGP support) martin f krafft
2010-01-08  8:09     ` Mike Hommey
2010-01-08  9:12       ` martin f krafft
2010-01-08  9:21     ` Ruben Pollan
2010-01-08 10:24       ` martin f krafft
2010-01-08 19:41       ` micah anderson
2010-01-10 12:42         ` Ruben Pollan
2010-01-08 10:37     ` James Westby
2010-01-14 10:03       ` Olly Betts
2009-11-26 18:41 ` OpenPGP support Carl Worth
2009-11-26 23:01   ` Keith Packard [this message]
2009-11-28  4:06     ` Carl Worth
2009-11-29 19:44   ` Jameson Graef Rollins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yunfx80evql.fsf@aiko.keithp.com \
    --to=keithp@keithp.com \
    --cc=cworth@cworth.org \
    --cc=jrollins@finestructure.net \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).