diff options
| -rw-r--r-- | lisp/gnus/gnus-art.el | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 4bc1e3fe708..d9a32de5528 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -1529,9 +1529,11 @@ or not." | |||
| 1529 | (unless charset | 1529 | (unless charset |
| 1530 | (setq charset gnus-newsgroup-charset)) | 1530 | (setq charset gnus-newsgroup-charset)) |
| 1531 | (when (or force | 1531 | (when (or force |
| 1532 | (and type (string-match "quoted-printable" (downcase type)))) | 1532 | (and type (let ((case-fold-search t)) |
| 1533 | (string-match "quoted-printable" type)))) | ||
| 1533 | (article-goto-body) | 1534 | (article-goto-body) |
| 1534 | (quoted-printable-decode-region (point) (point-max) charset))))) | 1535 | (quoted-printable-decode-region |
| 1536 | (point) (point-max) (mm-charset-to-coding-system charset)))))) | ||
| 1535 | 1537 | ||
| 1536 | (defun article-de-base64-unreadable (&optional force) | 1538 | (defun article-de-base64-unreadable (&optional force) |
| 1537 | "Translate a base64 article. | 1539 | "Translate a base64 article. |
| @@ -1554,13 +1556,14 @@ If FORCE, decode the article whether it is marked as base64 not." | |||
| 1554 | (unless charset | 1556 | (unless charset |
| 1555 | (setq charset gnus-newsgroup-charset)) | 1557 | (setq charset gnus-newsgroup-charset)) |
| 1556 | (when (or force | 1558 | (when (or force |
| 1557 | (and type (string-match "base64" (downcase type)))) | 1559 | (and type (let ((case-fold-search t)) |
| 1560 | (string-match "base64" type)))) | ||
| 1558 | (article-goto-body) | 1561 | (article-goto-body) |
| 1559 | (save-restriction | 1562 | (save-restriction |
| 1560 | (narrow-to-region (point) (point-max)) | 1563 | (narrow-to-region (point) (point-max)) |
| 1561 | (base64-decode-region (point-min) (point-max)) | 1564 | (base64-decode-region (point-min) (point-max)) |
| 1562 | (if (mm-coding-system-p charset) | 1565 | (mm-decode-coding-region |
| 1563 | (mm-decode-coding-region (point-min) (point-max) charset))))))) | 1566 | (point-min) (point-max) (mm-charset-to-coding-system charset))))))) |
| 1564 | 1567 | ||
| 1565 | (eval-when-compile | 1568 | (eval-when-compile |
| 1566 | (require 'rfc1843)) | 1569 | (require 'rfc1843)) |