* Disable pgp signatures for Gcc copy
@ 2012-11-05 14:39 Toke Høiland-Jørgensen
2012-11-05 23:31 ` Katsumi Yamaoka
0 siblings, 1 reply; 3+ messages in thread
From: Toke Høiland-Jørgensen @ 2012-11-05 14:39 UTC (permalink / raw)
To: ding
[-- Attachment #1: Type: text/plain, Size: 573 bytes --]
I'm using pgpmime signatures for outgoing mails, which works fine.
However, mails are signed twice: once when they are sent, and again for
the copy saved in the Gcc folder. This is annoying because it takes
longer to send mails, and because I get two successive pin popups for my
signing smart card. Since the Gcc copies are for myself, I don't really
need the signatures on these copies.
So my question is, is there a way to disable signatures for Gcc copies
of mails (similar to Mutt's fcc_clear option)?
-Toke
--
Toke Høiland-Jørgensen
toke@toke.dk
[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Disable pgp signatures for Gcc copy
2012-11-05 14:39 Disable pgp signatures for Gcc copy Toke Høiland-Jørgensen
@ 2012-11-05 23:31 ` Katsumi Yamaoka
2012-11-06 0:41 ` Toke Høiland-Jørgensen
0 siblings, 1 reply; 3+ messages in thread
From: Katsumi Yamaoka @ 2012-11-05 23:31 UTC (permalink / raw)
To: ding
Toke Høiland-Jørgensen wrote:
> So my question is, is there a way to disable signatures for Gcc copies
> of mails (similar to Mutt's fcc_clear option)?
That will be just one of the purposes of to use
`gnus-gcc-pre-body-encode-hook', that runs before archiving
a message copy as Gcc. Here's what I tried:
(add-hook 'gnus-gcc-pre-body-encode-hook
(lambda ()
(message-goto-body)
(while (re-search-forward
"^<#secure\\( [^\n >]+\\)* mode=sign\\( [^\n >]+\\)*>\n"
nil t)
(delete-region (match-beginning 0) (match-end 0)))))
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Disable pgp signatures for Gcc copy
2012-11-05 23:31 ` Katsumi Yamaoka
@ 2012-11-06 0:41 ` Toke Høiland-Jørgensen
0 siblings, 0 replies; 3+ messages in thread
From: Toke Høiland-Jørgensen @ 2012-11-06 0:41 UTC (permalink / raw)
To: ding
[-- Attachment #1: Type: text/plain, Size: 581 bytes --]
Katsumi Yamaoka <yamaoka@jpl.org> writes:
> That will be just one of the purposes of to use
> `gnus-gcc-pre-body-encode-hook', that runs before archiving
> a message copy as Gcc. Here's what I tried:
>
> (add-hook 'gnus-gcc-pre-body-encode-hook
> (lambda ()
> (message-goto-body)
> (while (re-search-forward
> "^<#secure\\( [^\n >]+\\)* mode=sign\\( [^\n >]+\\)*>\n"
> nil t)
> (delete-region (match-beginning 0) (match-end 0)))))
>
That works beautifully. Thanks a lot! :)
-Toke
--
Toke Høiland-Jørgensen
toke@toke.dk
[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-11-06 0:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-05 14:39 Disable pgp signatures for Gcc copy Toke Høiland-Jørgensen
2012-11-05 23:31 ` Katsumi Yamaoka
2012-11-06 0:41 ` Toke Høiland-Jørgensen
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).