Function: rmail-sort-from-summary

rmail-sort-from-summary is a byte-compiled function defined in rmailsum.el.gz.

Signature

(rmail-sort-from-summary SORTFUN REVERSE)

Documentation

Sort the Rmail buffer using sorting function SORTFUN.

Passes REVERSE to SORTFUN as its sole argument. Then regenerates the summary. Note that the whole Rmail buffer is sorted, even if the summary is only showing a subset of messages.

Source Code

;; Defined in /usr/src/emacs/lisp/mail/rmailsum.el.gz
(defun rmail-sort-from-summary (sortfun reverse)
  "Sort the Rmail buffer using sorting function SORTFUN.
Passes REVERSE to SORTFUN as its sole argument.  Then regenerates
the summary.  Note that the whole Rmail buffer is sorted, even if
the summary is only showing a subset of messages."
  (require 'rmailsort)
  (let ((selwin (selected-window)))
    (unwind-protect
	(progn (rmail-pop-to-buffer rmail-buffer)
	       (funcall sortfun reverse))
      (select-window selwin))))