Function: message-all-recipients

message-all-recipients is a byte-compiled function defined in message.el.gz.

Signature

(message-all-recipients)

Documentation

Return a list of all recipients in the message, looking at TO, Cc and Bcc.

Each recipient is in the format of mail-extract-address-components.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/message.el.gz
(defun message-all-recipients ()
  "Return a list of all recipients in the message, looking at TO, Cc and Bcc.

Each recipient is in the format of `mail-extract-address-components'."
  (mapcan (lambda (header)
            (let ((header-value (message-fetch-field header)))
              (and
               header-value
               (mail-extract-address-components header-value t))))
          '("To" "Cc" "Bcc")))