From: Christopher Schmidt <christopher@ch.ristopher.com>
To: ding@gnus.org
Subject: Re: Encryption vs. Gcc
Date: Fri, 6 Sep 2013 14:10:11 +0100 (BST) [thread overview]
Message-ID: <8738piccyu@ch.ristopher.com> (raw)
In-Reply-To: <87fvtku3u3.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Wed, 04 Sep 2013 15:13:56 +0200")
ludo@gnu.org (Ludovic Courtès) writes:
> However, that doesn’t work, apparently because when the hook is called
> the buffer that is current is not the message (see
> ‘gnus-inews-do-gcc’.)
(ah gnus-gcc-pre-body-encode-hook
(goto-char (message-goto-body))
(while (re-search-forward "^<#\\(secure .*mode=\\(sign\\)?encrypt.*>\\)$"
nil
t)
(replace-match "<|rms\\1")))
(ah gnus-gcc-post-body-encode-hook
(goto-char (message-goto-body))
(while (re-search-forward "^<|rms\\(.*\\)$" nil t)
(replace-match "<#\\1"))))
Christopher
prev parent reply other threads:[~2013-09-06 13:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-04 13:13 Ludovic Courtès
2013-09-04 18:41 ` Philipp Haselwarter
2013-09-06 13:02 ` Ludovic Courtès
2013-09-04 20:07 ` Adam Sjøgren
2013-09-06 13:10 ` Christopher Schmidt [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=8738piccyu@ch.ristopher.com \
--to=christopher@ch.ristopher.com \
--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).