Function: rmail-summary-by-labels
rmail-summary-by-labels is an autoloaded, interactive and
byte-compiled function defined in rmailsum.el.gz.
Signature
(rmail-summary-by-labels LABELS)
Documentation
Display a summary of all messages with one or more LABELS.
LABELS should be a string containing the desired labels, separated by commas.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mail/rmailsum.el.gz
;;;###autoload
(defun rmail-summary-by-labels (labels)
"Display a summary of all messages with one or more LABELS.
LABELS should be a string containing the desired labels, separated by commas."
(interactive "sLabels to summarize by: ")
(if (string= labels "")
(setq labels (or rmail-last-multi-labels
(error "No label specified"))))
(setq rmail-last-multi-labels labels)
(if (and rmail-summary-progressively-narrow
(rmail-summary--exists-1))
(rmail-summary-populate-displayed-messages))
(rmail-new-summary (concat "labels " labels)
(list 'rmail-summary-by-labels labels)
(if (and rmail-summary-progressively-narrow
(rmail-summary--exists-1))
(lambda (msg l)
(and (aref rmail-summary-currently-displayed-msgs msg)
(rmail-message-labels-p msg l)))
'rmail-message-labels-p)
(concat " \\("
(mail-comma-list-regexp labels)
"\\)\\(,\\|\\'\\)")))