diff options
| author | Katsumi Yamaoka | 2011-10-11 05:51:09 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-10-11 05:51:09 +0000 |
| commit | f5b71bc0d6de35ff97571d7b933b8ba8e8bbb1bb (patch) | |
| tree | 561dacae381f2968ceefdbe4e91b6db76a2312ca | |
| parent | 93e616fdc5f4ef9161570028ed4329128db09777 (diff) | |
| download | emacs-f5b71bc0d6de35ff97571d7b933b8ba8e8bbb1bb.tar.gz emacs-f5b71bc0d6de35ff97571d7b933b8ba8e8bbb1bb.zip | |
Bugfix: message.el (message-signed-or-encrypted-p): Exclude header when checking if there is signed or encrypted body in text/plain message.
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 9c76635fb63..a4c2d97403b 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-10-11 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * message.el (message-signed-or-encrypted-p): Exclude header when | ||
| 4 | checking if there is signed or encrypted body in text/plain message. | ||
| 5 | |||
| 1 | 2011-10-09 Andreas Schwab <schwab@linux-m68k.org> | 6 | 2011-10-09 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 7 | ||
| 3 | * html2text.el (html2text-get-attr): Correctly handle attribute values | 8 | * html2text.el (html2text-get-attr): Correctly handle attribute values |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 7203ef69a14..948892d1e13 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -7429,14 +7429,16 @@ is for the internal use." | |||
| 7429 | (with-temp-buffer | 7429 | (with-temp-buffer |
| 7430 | (insert-buffer-substring cur) | 7430 | (insert-buffer-substring cur) |
| 7431 | (when (setq handles (mm-dissect-buffer t t)) | 7431 | (when (setq handles (mm-dissect-buffer t t)) |
| 7432 | (if (and (prog1 | 7432 | (if (and (bufferp (car handles)) |
| 7433 | (bufferp (car handles)) | ||
| 7434 | (mm-destroy-parts handles)) | ||
| 7435 | (equal (mm-handle-media-type handles) "text/plain")) | 7433 | (equal (mm-handle-media-type handles) "text/plain")) |
| 7436 | (progn | 7434 | (progn |
| 7435 | (erase-buffer) | ||
| 7436 | (insert-buffer-substring (car handles)) | ||
| 7437 | (mm-decode-content-transfer-encoding | 7437 | (mm-decode-content-transfer-encoding |
| 7438 | (mm-handle-encoding handles)) | 7438 | (mm-handle-encoding handles)) |
| 7439 | (mm-destroy-parts handles) | ||
| 7439 | (setq handles (mm-uu-dissect))) | 7440 | (setq handles (mm-uu-dissect))) |
| 7441 | (mm-destroy-parts handles) | ||
| 7440 | (setq handles nil)))))) | 7442 | (setq handles nil)))))) |
| 7441 | (when handles | 7443 | (when handles |
| 7442 | (prog1 | 7444 | (prog1 |