diff options
| author | Gerd Moellmann | 2001-05-31 08:09:47 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-05-31 08:09:47 +0000 |
| commit | 9652931f21f2831d42f0ece8d190f0dfca439b49 (patch) | |
| tree | 05f7eb11404939a1866e08ded671cd4ca02a1fef | |
| parent | 4c1832e932b44f3b1a30717797ce6112c26f158a (diff) | |
| download | emacs-9652931f21f2831d42f0ece8d190f0dfca439b49.tar.gz emacs-9652931f21f2831d42f0ece8d190f0dfca439b49.zip | |
(rmail-revert): Modify to work in
rmail-view-buffer.
(rmail-insert-mime-resent-message-function): New
variable.
(rmail-resend): Modify to work in `rmail-view-buffer'; call
`rmail-insert-mime-resent-message-function' if `rmail-enable-mime'
is non-nil.
| -rw-r--r-- | lisp/ChangeLog | 15 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 19 |
2 files changed, 31 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 426eb6bceb9..ee24a944110 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -3,6 +3,21 @@ | |||
| 3 | * international/mule-cmds.el (inactivate-input-method): Set | 3 | * international/mule-cmds.el (inactivate-input-method): Set |
| 4 | input-method-function to nil. | 4 | input-method-function to nil. |
| 5 | 5 | ||
| 6 | 2001-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp> | ||
| 7 | |||
| 8 | * mail/rmailsum.el (rmail-message-subject-p): Don't call | ||
| 9 | `rmail-summary-line-decoder' if the message does not have Subject: | ||
| 10 | field. | ||
| 11 | |||
| 12 | * mail/rmail.el (rmail-revert): Modify to work in | ||
| 13 | rmail-view-buffer. | ||
| 14 | |||
| 15 | * mail/rmail.el (rmail-insert-mime-resent-message-function): New | ||
| 16 | variable. | ||
| 17 | (rmail-resend): Modify to work in `rmail-view-buffer'; call | ||
| 18 | `rmail-insert-mime-resent-message-function' if `rmail-enable-mime' | ||
| 19 | is non-nil. | ||
| 20 | |||
| 6 | 2001-05-29 Sam Steingold <sds@gnu.org> | 21 | 2001-05-29 Sam Steingold <sds@gnu.org> |
| 7 | 22 | ||
| 8 | * faces.el (face-valid-attribute-values): Bind `valid' directly | 23 | * faces.el (face-valid-attribute-values): Bind `valid' directly |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 35c7cbefeaa..4a130311566 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -432,6 +432,14 @@ buffer containing the message to forward. The current buffer | |||
| 432 | is the outgoing mail buffer.") | 432 | is the outgoing mail buffer.") |
| 433 | 433 | ||
| 434 | ;;;###autoload | 434 | ;;;###autoload |
| 435 | (defvar rmail-insert-mime-resent-message-function nil | ||
| 436 | "Function to insert a message in MIME format so it can be resent. | ||
| 437 | This function is called if `rmail-enable-mime' is non-nil. | ||
| 438 | It is called with one argument FORWARD-BUFFER, which is a | ||
| 439 | buffer containing the message to forward. The current buffer | ||
| 440 | is the outgoing mail buffer.") | ||
| 441 | |||
| 442 | ;;;###autoload | ||
| 435 | (defvar rmail-search-mime-message-function nil | 443 | (defvar rmail-search-mime-message-function nil |
| 436 | "Function to check if a regexp matches a MIME message. | 444 | "Function to check if a regexp matches a MIME message. |
| 437 | This function is called if `rmail-enable-mime' is non-nil. | 445 | This function is called if `rmail-enable-mime' is non-nil. |
| @@ -1110,6 +1118,7 @@ Instead, these commands are available: | |||
| 1110 | 1118 | ||
| 1111 | ;; Handle M-x revert-buffer done in an rmail-mode buffer. | 1119 | ;; Handle M-x revert-buffer done in an rmail-mode buffer. |
| 1112 | (defun rmail-revert (arg noconfirm) | 1120 | (defun rmail-revert (arg noconfirm) |
| 1121 | (set-buffer rmail-buffer) | ||
| 1113 | (let* ((revert-buffer-function (default-value 'revert-buffer-function)) | 1122 | (let* ((revert-buffer-function (default-value 'revert-buffer-function)) |
| 1114 | (rmail-enable-multibyte enable-multibyte-characters) | 1123 | (rmail-enable-multibyte enable-multibyte-characters) |
| 1115 | ;; See similar code in `rmail'. | 1124 | ;; See similar code in `rmail'. |
| @@ -1119,7 +1128,8 @@ Instead, these commands are available: | |||
| 1119 | ;; If the user said "yes", and we changed something, | 1128 | ;; If the user said "yes", and we changed something, |
| 1120 | ;; reparse the messages. | 1129 | ;; reparse the messages. |
| 1121 | (progn | 1130 | (progn |
| 1122 | (rmail-mode-2) | 1131 | (set-buffer rmail-buffer) |
| 1132 | (rmail-mode-2) | ||
| 1123 | ;; Convert all or part to Babyl file if possible. | 1133 | ;; Convert all or part to Babyl file if possible. |
| 1124 | (rmail-convert-file) | 1134 | (rmail-convert-file) |
| 1125 | ;; We have read the file as raw-text, so the buffer is set to | 1135 | ;; We have read the file as raw-text, so the buffer is set to |
| @@ -3215,7 +3225,8 @@ typically for purposes of moderating a list." | |||
| 3215 | (interactive "sResend to: ") | 3225 | (interactive "sResend to: ") |
| 3216 | (require 'sendmail) | 3226 | (require 'sendmail) |
| 3217 | (require 'mailalias) | 3227 | (require 'mailalias) |
| 3218 | (unless (eq rmail-buffer (current-buffer)) | 3228 | (unless (or (eq rmail-view-buffer (current-buffer)) |
| 3229 | (eq rmail-buffer (current-buffer))) | ||
| 3219 | (error "Not an Rmail buffer")) | 3230 | (error "Not an Rmail buffer")) |
| 3220 | (if (not from) (setq from user-mail-address)) | 3231 | (if (not from) (setq from user-mail-address)) |
| 3221 | (let ((tembuf (generate-new-buffer " sendmail temp")) | 3232 | (let ((tembuf (generate-new-buffer " sendmail temp")) |
| @@ -3224,7 +3235,9 @@ typically for purposes of moderating a list." | |||
| 3224 | (unwind-protect | 3235 | (unwind-protect |
| 3225 | (with-current-buffer tembuf | 3236 | (with-current-buffer tembuf |
| 3226 | ;;>> Copy message into temp buffer | 3237 | ;;>> Copy message into temp buffer |
| 3227 | (insert-buffer-substring mailbuf) | 3238 | (if rmail-enable-mime |
| 3239 | (funcall rmail-insert-mime-resent-message-function mailbuf) | ||
| 3240 | (insert-buffer-substring mailbuf)) | ||
| 3228 | (goto-char (point-min)) | 3241 | (goto-char (point-min)) |
| 3229 | ;; Delete any Sender field, since that's not specifiable. | 3242 | ;; Delete any Sender field, since that's not specifiable. |
| 3230 | ; Only delete Sender fields in the actual header. | 3243 | ; Only delete Sender fields in the actual header. |