Function: rmail-summary-by-recipients

rmail-summary-by-recipients is an autoloaded, interactive and byte-compiled function defined in rmailsum.el.gz.

Signature

(rmail-summary-by-recipients RECIPIENTS &optional PRIMARY-ONLY)

Documentation

Display a summary of all messages with the given RECIPIENTS.

Normally checks the To, From and Cc fields of headers; but if PRIMARY-ONLY is non-nil (prefix arg given),
 only look in the To and From fields.
RECIPIENTS is a regular expression.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/mail/rmailsum.el.gz
;;;###autoload
(defun rmail-summary-by-recipients (recipients &optional primary-only)
  "Display a summary of all messages with the given RECIPIENTS.
Normally checks the To, From and Cc fields of headers;
but if PRIMARY-ONLY is non-nil (prefix arg given),
 only look in the To and From fields.
RECIPIENTS is a regular expression."
  (interactive "sRecipients to summarize by: \nP")
  (if (and rmail-summary-progressively-narrow
	   (rmail-summary--exists-1))
      (rmail-summary-populate-displayed-messages))
  (rmail-new-summary
   (concat "recipients " recipients)
   (list 'rmail-summary-by-recipients recipients primary-only)
   (if (and rmail-summary-progressively-narrow
	    (rmail-summary--exists-1))
       (lambda (msg r &optional po)
	 (and (aref rmail-summary-currently-displayed-msgs msg)
	      (rmail-message-recipients-p msg r po)))
     'rmail-message-recipients-p)
   recipients primary-only))