Function: rmail-summary-undelete
rmail-summary-undelete is an interactive and byte-compiled function
defined in rmailsum.el.gz.
Signature
(rmail-summary-undelete &optional ARG)
Documentation
Undelete current message.
Optional prefix ARG means undelete ARG previous messages.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mail/rmailsum.el.gz
(defun rmail-summary-undelete (&optional arg)
"Undelete current message.
Optional prefix ARG means undelete ARG previous messages."
(interactive "p")
(if (/= arg 1)
(rmail-summary-undelete-many arg)
(let ((buffer-read-only nil)
(opoint (point)))
(end-of-line)
(cond ((re-search-backward "\\(^ *[0-9]*\\)\\(D\\)" nil t)
(replace-match "\\1 ")
(rmail-summary-goto-msg)
(if rmail-enable-mime
(set-buffer rmail-buffer)
(rmail-pop-to-buffer rmail-buffer))
(and (rmail-message-deleted-p rmail-current-message)
(rmail-undelete-previous-message 1))
(if rmail-enable-mime
(rmail-pop-to-buffer rmail-buffer))
(rmail-pop-to-buffer rmail-summary-buffer))
(t (goto-char opoint))))))