From: Uwe Brauer <oub@mat.ucm.es>
To: ding@gnus.org
Subject: Re: reply hook?
Date: Sun, 02 Dec 2012 19:59:52 +0100 [thread overview]
Message-ID: <878v9ge0uv.fsf@mat.ucm.es> (raw)
In-Reply-To: <84y5hho9uo.fsf@davestoy.homelinux.org>
>> On Sat, 01 Dec 2012 14:23:11 -0500, david.goldberg6@verizon.net (Dave Goldberg) wrote:
>> Hello
>> I would like to execute a couple of function when replying.
>> I have not found a relevant hook so I am using defadvice
>> which is not good for debugging.
> In gnus-message-setup-hook you can check for the variable gnus-article-reply. I use this to ensure I am sending encrypted replies to encrypted messages:
> (add-hook 'gnus-message-setup-hook
> (lambda ()
> (cond ((and gnus-article-reply
> (message-with-reply-buffer
> (re-search-forward
> "^Content-Type.*application/\\(x-\\)?pkcs7-mime"
> nil t)))
> (condition-case nil
> (mml-secure-message-encrypt-smime)
> (error
> (message "One or more recipients do not have certs")))))))
Cool.
I prefer however
(mml-secure-message-encrypt-pgp) over
smime, :-D
> --
> Dave Goldberg
> david.goldberg6@verizon.net
prev parent reply other threads:[~2012-12-02 18:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-30 15:03 Uwe Brauer
2012-12-01 11:48 ` Oleksandr Gavenko
2012-12-01 19:23 ` Dave Goldberg
2012-12-02 18:59 ` Uwe Brauer [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878v9ge0uv.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--cc=ding@gnus.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.
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 NNTP newsgroup(s).