Function: rmail-sort-by-recipient

rmail-sort-by-recipient is an autoloaded, interactive and byte-compiled function defined in rmailsort.el.gz.

Signature

(rmail-sort-by-recipient REVERSE)

Documentation

Sort messages of current Rmail buffer by recipient.

This uses either the "To" or "Apparently-To" header, downcased. If prefix argument REVERSE is non-nil, sorts in reverse order.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/mail/rmailsort.el.gz
;;;###autoload
(defun rmail-sort-by-recipient (reverse)
  "Sort messages of current Rmail buffer by recipient.
This uses either the \"To\" or \"Apparently-To\" header, downcased.
If prefix argument REVERSE is non-nil, sorts in reverse order."
  (interactive "P")
  (rmail-sort-messages reverse
		       (lambda (msg)
			 (downcase	; canonical name
			  (mail-strip-quoted-names
			   (or (rmail-get-header "To" msg)
			       (rmail-get-header "Apparently-To" msg) ""))))))