2006-01-16 Henrik Enberg <enberg@printf.se>
+ * rmail.el: Don't require `rmailout' and `rmailsum'.
+
+ * rmailsum.el (rmail-summary-get-line-count): Rightalign line count.
+ (rmail-summary-get-summary): Display 5-digit message ids.
+ (rmail-summary-goto-msg): Adjust for 5-digit ids.
+
* rmail.el (rmail-url-map, rmail-activate-urls, rmail-visit-url-at-mouse,
rmail-visit-url-at-point, rmail-browse-body): Deleted, don't
duplicate goto-address functionality.
(goto-char (point-max))
(rmail-summary-goto-msg nil nowarn skip-rmail)))
(goto-char (point-min))
- (if (not (re-search-forward (format "^%4d[^0-9]" n) nil t))
+ (if (not (re-search-forward (format "^%5d[^0-9]" n) nil t))
(progn (or nowarn (message "Message %d not found" n))
(setq n curmsg)
(setq message-not-found t)
summary buffer if the User has enabled line counts, otherwise return
an empty string."
(if rmail-summary-line-count-flag
- (format "[%s]" (rmail-desc-get-line-count n))
+ (let ((lines (rmail-desc-get-line-count n)))
+ (format (cond ((<= lines 9) " [%d]")
+ ((<= lines 99) " [%d]")
+ ((<= lines 999) " [%3d]")
+ (t "[%d]"))
+ lines))
""))
(defun rmail-summary-get-summary-attributes (n)
(defun rmail-summary-get-summary (n)
"Return a summary line for message N."
(funcall rmail-summary-line-decoder
- (format "%4s%s%6s %25s %s %s\n"
+ (format "%5s%s%6s %25s %s %s\n"
n
(rmail-summary-get-summary-attributes n)
(concat (rmail-desc-get-day-number n) "-"