Mercurial > emacs
comparison lisp/gnus/mml2015.el @ 92694:d3767aa9ae49
Merge from gnus--devo--0
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1097
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 10 Mar 2008 00:50:22 +0000 |
parents | 773ae07da318 |
children | a789a1138b08 |
comparison
equal
deleted
inserted
replaced
92693:2a2d2de297db | 92694:d3767aa9ae49 |
---|---|
151 | 151 |
152 ;; Extract plaintext from cleartext signature. IMO, this kind of task | 152 ;; Extract plaintext from cleartext signature. IMO, this kind of task |
153 ;; should be done by GnuPG rather than Elisp, but older PGP backends | 153 ;; should be done by GnuPG rather than Elisp, but older PGP backends |
154 ;; (such as Mailcrypt, PGG, and gpg.el) discard the output from GnuPG. | 154 ;; (such as Mailcrypt, PGG, and gpg.el) discard the output from GnuPG. |
155 (defun mml2015-extract-cleartext-signature () | 155 (defun mml2015-extract-cleartext-signature () |
156 ;; Daiki Ueno in | |
157 ;; <54a15d860801080142l70b95d7dkac4bf51a86196011@mail.gmail.com>: ``I still | |
158 ;; believe that the right way is to use the plaintext output from GnuPG as | |
159 ;; it is, and mml2015-extract-cleartext-signature is just a kludge for | |
160 ;; misdesigned libraries like PGG, which have no ability to do that. So, I | |
161 ;; think it should not have descriptive documentation.'' | |
162 ;; | |
163 ;; This function doesn't handle NotDashEscaped correctly. EasyPG handles it | |
164 ;; correctly. | |
165 ;; http://thread.gmane.org/gmane.emacs.gnus.general/66062/focus=66082 | |
166 ;; http://thread.gmane.org/gmane.emacs.gnus.general/65087/focus=65109 | |
156 (goto-char (point-min)) | 167 (goto-char (point-min)) |
157 (forward-line) | 168 (forward-line) |
158 ;; We need to be careful not to strip beyond the armor headers. | 169 ;; We need to be careful not to strip beyond the armor headers. |
159 ;; Previously, an attacker could replace the text inside our | 170 ;; Previously, an attacker could replace the text inside our |
160 ;; markup with trailing garbage by injecting whitespace into the | 171 ;; markup with trailing garbage by injecting whitespace into the |