(wl-summary-update-modeline)
(wl-folder-update-unread
(wl-summary-buffer-folder-name)
- (+ wl-summary-buffer-unread-count
- wl-summary-buffer-new-count))))
+ wl-summary-buffer-unread-count)))
t)
nil)))))
;;(message (concat deleting-info "done"))
(wl-summary-count-unread)
(wl-summary-update-modeline)
- (wl-summary-folder-info-update))))
+ (wl-summary-update-folder-info))))
(defun wl-summary-update-status-marks (beg end &optional check)
"Synchronize status marks on current buffer to the msgdb."
(format "%d crosspost message(s)" crossed)))
(and mes (setq mes (concat mes "."))))
;; Update Folder mode
- (wl-folder-set-folder-updated
- (elmo-folder-name-internal folder)
- (list 0
- (let ((lst (wl-summary-count-unread)))
- (+ (car lst) (nth 1 lst)))
- (elmo-folder-length folder)))
+ (wl-summary-count-unread)
(wl-summary-update-modeline)
+ (wl-summary-update-folder-info)
;;
(unless unset-cursor
(goto-char (point-min))
;; should elmo-folder-flag-as-read return unread numbers?
(wl-summary-count-unread)
(wl-summary-update-modeline)
- (wl-folder-update-unread
- (wl-summary-buffer-folder-name)
- (+ wl-summary-buffer-unread-count
- wl-summary-buffer-new-count)))))))
+ (wl-summary-update-folder-info))))))
(defun wl-summary-mark-as-read (&optional number-or-numbers
no-folder-mark
(wl-summary-update-modeline)
(wl-folder-update-unread
(wl-summary-buffer-folder-name)
- (+ wl-summary-buffer-unread-count
- wl-summary-buffer-new-count)))))))
+ wl-summary-buffer-unread-count))))))
(defun wl-summary-mark-as-answered (&optional number-or-numbers
no-modeline-update)
(wl-summary-print-message)
(wl-summary-unmark))))))
+(defun wl-summary-update-folder-info ()
+ (wl-folder-set-folder-updated
+ (elmo-string (wl-summary-buffer-folder-name))
+ (list wl-summary-buffer-new-count
+ wl-summary-buffer-unread-count
+ (elmo-folder-length
+ wl-summary-buffer-elmo-folder))))
+
(defun wl-summary-folder-info-update ()
(wl-folder-set-folder-updated
(elmo-string (wl-summary-buffer-folder-name))