Function: rmail-get-summary-status
rmail-get-summary-status is a byte-compiled function defined in
rmailsum.el.gz.
Signature
(rmail-get-summary-status)
Documentation
Return a coded string wrapped in curly braces denoting the status.
The current buffer must already be narrowed to the message headers for the message being processed.
Source Code
;; Defined in /usr/src/emacs/lisp/mail/rmailsum.el.gz
;; FIXME this is now unused.
;; The intention was to display in the summary something like {E}
;; for an edited messaged, similarly for answered, etc.
;; But that conflicts with the previous rmail usage, where
;; any user-defined { labels } occupied this space.
;; So whilst it would be nice to have this information in the summary,
;; it would need to go somewhere else.
(defun rmail-get-summary-status ()
"Return a coded string wrapped in curly braces denoting the status.
The current buffer must already be narrowed to the message headers for
the message being processed."
(let ((status (mail-fetch-field rmail-attribute-header))
(index 0)
(result "")
char)
;; Strip off the read/unread and the deleted attribute which are
;; handled separately.
(setq status
(if status
(concat (substring status 0 1) (substring status 2 6))
""))
(while (< index (length status))
(unless (string= "-" (setq char (substring status index (1+ index))))
(setq result (concat result char)))
(setq index (1+ index)))
(when (> (length result) 0)
(setq result (concat "{" result "}")))
result))