diff options
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 26 | ||||
| -rw-r--r-- | lisp/mail/rmailmm.el | 2 |
3 files changed, 21 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 95834e81a8d..91724c54e84 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2011-11-15 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * mail/rmail.el (rmail-file-coding-system): It's only ever used | ||
| 4 | in a boolean sense, so just make it a boolean, and fix the doc. | ||
| 5 | (rmail-show-mime-function, rmail-mime-feature) | ||
| 6 | (rmail-require-mime-maybe): Doc fixes. | ||
| 7 | (rmail-show-message-1): Check rmail-show-mime-function is non-nil. | ||
| 8 | |||
| 9 | * mail/rmailmm.el (rmail-show-mime): Doc fix. | ||
| 10 | |||
| 1 | 2011-11-15 Juanma Barranquero <lekktu@gmail.com> | 11 | 2011-11-15 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 12 | ||
| 3 | * epg.el (epg-start-decrypt, epg-start-verify, epg-start-sign) | 13 | * epg.el (epg-start-decrypt, epg-start-verify, epg-start-sign) |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 4ecd1c2fd0d..d1322915aba 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -631,27 +631,20 @@ Element N specifies the summary line for message N+1.") | |||
| 631 | This is set to nil by default.") | 631 | This is set to nil by default.") |
| 632 | 632 | ||
| 633 | (defcustom rmail-enable-mime t | 633 | (defcustom rmail-enable-mime t |
| 634 | "If non-nil, RMAIL uses MIME features. | 634 | "If non-nil, RMAIL automatically displays decoded MIME messages. |
| 635 | If the value is t, RMAIL automatically shows MIME decoded message. | 635 | For this to work, the feature specified by `rmail-mime-feature' must |
| 636 | If the value is neither t nor nil, RMAIL does not show MIME decoded message | 636 | be available." |
| 637 | until a user explicitly requires it. | 637 | :type 'boolean |
| 638 | |||
| 639 | Even if the value is non-nil, you can't use MIME features | ||
| 640 | unless the feature specified by `rmail-mime-feature' is available." | ||
| 641 | :type '(choice (const :tag "on" t) | ||
| 642 | (const :tag "off" nil) | ||
| 643 | (other :tag "when asked" ask)) | ||
| 644 | :version "23.3" | 638 | :version "23.3" |
| 645 | :group 'rmail) | 639 | :group 'rmail) |
| 646 | 640 | ||
| 647 | (defvar rmail-enable-mime-composing t | 641 | (defvar rmail-enable-mime-composing t |
| 648 | "*If non-nil, RMAIL uses `rmail-insert-mime-forwarded-message-function' to forward.") | 642 | "*If non-nil, RMAIL uses `rmail-insert-mime-forwarded-message-function' to forward.") |
| 649 | 643 | ||
| 650 | ;; FIXME unused. | ||
| 651 | (defvar rmail-show-mime-function nil | 644 | (defvar rmail-show-mime-function nil |
| 652 | "Function to show MIME decoded message of RMAIL file. | 645 | "Function of no argument called to show a decoded MIME message. |
| 653 | This function is called when `rmail-enable-mime' is non-nil. | 646 | This function is called when `rmail-enable-mime' is non-nil. |
| 654 | It is called with no argument.") | 647 | The package providing MIME support should set this.") |
| 655 | 648 | ||
| 656 | ;;;###autoload | 649 | ;;;###autoload |
| 657 | (defvar rmail-insert-mime-forwarded-message-function nil | 650 | (defvar rmail-insert-mime-forwarded-message-function nil |
| @@ -687,7 +680,7 @@ where MSG is the message number, REGEXP is the regular | |||
| 687 | expression, LIMIT is the position specifying the end of header.") | 680 | expression, LIMIT is the position specifying the end of header.") |
| 688 | 681 | ||
| 689 | (defvar rmail-mime-feature 'rmailmm | 682 | (defvar rmail-mime-feature 'rmailmm |
| 690 | "Feature to require to load MIME support in Rmail. | 683 | "Feature to require for MIME support in Rmail. |
| 691 | When starting Rmail, if `rmail-enable-mime' is non-nil, | 684 | When starting Rmail, if `rmail-enable-mime' is non-nil, |
| 692 | this feature is required with `require'. | 685 | this feature is required with `require'. |
| 693 | 686 | ||
| @@ -837,10 +830,10 @@ isn't provided." | |||
| 837 | (display-warning | 830 | (display-warning |
| 838 | 'rmail | 831 | 'rmail |
| 839 | (format "Although MIME support is requested | 832 | (format "Although MIME support is requested |
| 840 | by setting `rmail-enable-mime' to non-nil, the required feature | 833 | through `rmail-enable-mime' being non-nil, the required feature |
| 841 | `%s' (the value of `rmail-mime-feature') | 834 | `%s' (the value of `rmail-mime-feature') |
| 842 | is not available in the current session. | 835 | is not available in the current session. |
| 843 | So, the MIME support is turned off for the moment." | 836 | So, MIME support is turned off for the moment." |
| 844 | rmail-mime-feature) | 837 | rmail-mime-feature) |
| 845 | :warning) | 838 | :warning) |
| 846 | (setq rmail-enable-mime nil))))) | 839 | (setq rmail-enable-mime nil))))) |
| @@ -2700,6 +2693,7 @@ The current mail message becomes the message displayed." | |||
| 2700 | ;; inspect this value to determine how to toggle. | 2693 | ;; inspect this value to determine how to toggle. |
| 2701 | (set (make-local-variable 'rmail-header-style) header-style)) | 2694 | (set (make-local-variable 'rmail-header-style) header-style)) |
| 2702 | (if (and rmail-enable-mime | 2695 | (if (and rmail-enable-mime |
| 2696 | rmail-show-mime-function | ||
| 2703 | (re-search-forward "mime-version: 1.0" nil t)) | 2697 | (re-search-forward "mime-version: 1.0" nil t)) |
| 2704 | (let ((rmail-buffer mbox-buf) | 2698 | (let ((rmail-buffer mbox-buf) |
| 2705 | (rmail-view-buffer view-buf)) | 2699 | (rmail-view-buffer view-buf)) |
diff --git a/lisp/mail/rmailmm.el b/lisp/mail/rmailmm.el index 45f7fe24f26..46cd4bbfb37 100644 --- a/lisp/mail/rmailmm.el +++ b/lisp/mail/rmailmm.el | |||
| @@ -1319,7 +1319,7 @@ attachments as specified by `rmail-mime-attachment-dirs-alist'." | |||
| 1319 | message type disposition encoding)) | 1319 | message type disposition encoding)) |
| 1320 | 1320 | ||
| 1321 | (defun rmail-show-mime () | 1321 | (defun rmail-show-mime () |
| 1322 | "Function to set in `rmail-show-mime-function' (which see)." | 1322 | "Function to use for the value of `rmail-show-mime-function'." |
| 1323 | (let ((entity (rmail-mime-parse)) | 1323 | (let ((entity (rmail-mime-parse)) |
| 1324 | (rmail-mime-mbox-buffer rmail-buffer) | 1324 | (rmail-mime-mbox-buffer rmail-buffer) |
| 1325 | (rmail-mime-view-buffer rmail-view-buffer) | 1325 | (rmail-mime-view-buffer rmail-view-buffer) |