;;; Commentary:
-;;; This package provides low level functions for tracking messages in Rmail.
+;;; This package provides low level functions for tracking messages in Rmail.
;;; Code:
;;;; Constants supporting message vector processing.
+(defconst rmail-desc-default-attrs "------U"
+ "The default attributes for a new message.")
+
;;; Message component indexes.
(defconst rmail-desc-beg-index 0
(nth rmail-desc-beg-index (rmail-desc-get-descriptor n))))
(defun rmail-desc-get-end (n)
- "Return the position of the end of message N."
+ "Return the position of the end of message N."
(if (= n (length rmail-desc-vector))
(save-restriction
(widen)
(rmail-header-add-header rmail-header-keyword-header
(mapconcat 'identity keywords ","))
(rmail-header-toggle-visibility display-state))))))
-
+
(defun rmail-desc-remove-keyword (keyword n)
"Remove KEYWORD from the list of keywords for message N.
The current buffer must be narrowed to message N. Both
(rmail-header-add-header rmail-header-keyword-header
(mapconcat 'identity keywords ","))
(rmail-header-toggle-visibility display-state))))))
-
+
(defun rmail-desc-attr-p (attr-index n)
"Return the state of the the attribute denoted by ATTR-INDEX in
message N."
(nth rmail-desc-date-day-of-week-index
(nth rmail-desc-date-index (rmail-desc-get-descriptor n))))
-(defun rmail-desc-get-default-attrs ()
- "Return the default attributes for a new message."
- (format "%s" "------U"))
-
(defun rmail-desc-get-header-display-state (n)
"Return t if ignorable headers are being displayed, nil otherwise."
(null (overlays-at (rmail-desc-get-start n))))
(and (>= curpos beg) (< curpos end))))
(provide 'rmaildesc)
+
+;;; rmaildesc.el ends here