;; Switch windows to the rmail buffer, or switch to it in this window.
(pop-to-buffer local-rmail-buffer)))
-;;; mbox: ready
(defun rmail-summary-expunge ()
"Actually erase all deleted messages and recompute summary headers."
(interactive)
(rmail-expunge)
(set-buffer rmail-summary-buffer))
-;;; mbox: ready
(defun rmail-summary-expunge-and-save ()
"Expunge and save RMAIL file."
(interactive)
(set-buffer rmail-summary-buffer)
(set-buffer-modified-p nil))
-;;; mbox: ready
(defun rmail-summary-get-new-mail (&optional file-name)
"Get new mail and recompute summary headers.
(end-of-buffer))
(forward-line -1))
-(defvar rmail-summary-edit-map nil)
-(if rmail-summary-edit-map
- nil
- (setq rmail-summary-edit-map
- (nconc (make-sparse-keymap) text-mode-map))
- (define-key rmail-summary-edit-map "\C-c\C-c" 'rmail-cease-edit)
- (define-key rmail-summary-edit-map "\C-c\C-]" 'rmail-abort-edit))
+(defvar rmail-summary-edit-map
+ (let ((map (nconc (make-sparse-keymap) text-mode-map)))
+ (define-key map "\C-c\C-c" 'rmail-cease-edit)
+ (define-key map "\C-c\C-]" 'rmail-abort-edit)
+ map)
+ "Mode map to use when editing the rmail summary.")
(defun rmail-summary-edit-current-message ()
"Edit the contents of this message."
(rmail-search regexp n))
(set-buffer buffer))))
-;;; mbox: ready
(defun rmail-summary-toggle-header ()
"Show original message header if pruned header currently shown, or vice versa."
(interactive)
(with-current-buffer rmail-buffer
(rmail-toggle-header)))
-;;; mbox: ready
(defun rmail-summary-add-label (label)
"Add LABEL to labels associated with current Rmail message.
Completion is performed over known labels when reading."
(set-buffer rmail-buffer)))
(rmail-start-mail t))
-;;; mbox: ready
(defun rmail-summary-reply (just-sender)
"Reply to the current message.
Normally include CC: to all other recipients of original message;