GNU bug report logs -
#18513
24.3; message-mode sends unencrypted on error
Previous Next
Reported by: David Bremner <david <at> tethera.net>
Date: Sat, 20 Sep 2014 06:14:01 UTC
Severity: normal
Found in version 24.3
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Daiki Ueno <ueno <at> gnu.org> writes:
> I've installed the following simple fix in the trunk. Does it work for you?
> === modified file 'lisp/gnus/mml.el'
> --- lisp/gnus/mml.el 2014-03-24 01:56:03 +0000
> +++ lisp/gnus/mml.el 2014-09-29 11:00:11 +0000
> @@ -257,7 +257,9 @@
> ((string= mode "encrypt")
> (setq tags (list "encrypt" method)))
> ((string= mode "signencrypt")
> - (setq tags (list "sign" method "encrypt" method))))
> + (setq tags (list "sign" method "encrypt" method)))
> + (t
> + (error "Unknown secure mode %s" mode)))
> (eval `(mml-insert-tag ,secure-mode
> ,@tags
> ,(if keyfile "keyfile")
It's definitely an improvement, and it fixes the scenario I reported. On
the other hand, if the use corrupts the #secure tag then essentially the
same behaviour results. Would it be possible to have a strict mode where
any unknown mml tag causes an error?
David
This bug report was last modified 5 years and 291 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.