retrieving message mark.
(wl-summary-redisplay-internal): Ditto.
* wl-message.el (wl-message-buffer-display): Ignore errors while
retrieving message-id field.
* elmo.el (elmo-message-mark): Cause an error when empty folder.
(elmo-message-field): Ditto.
2003-07-28 Yuuichi Teranishi <teranisi@gohome.org>
+ * elmo.el (elmo-message-mark): Cause an error when empty folder.
+ (elmo-message-field): Ditto.
+
* elmo-maildir.el (luna-define-class): Added slot `answered-locations'.
(elmo-map-folder-list-message-locations): Setup `answered-locations'
slot.
NUMBER is a number of the message.")
(luna-define-method elmo-message-mark ((folder elmo-folder) number)
+ (when (zerop (elmo-folder-length folder))
+ (error "Cannot treat this folder correctly."))
(elmo-msgdb-get-mark (elmo-folder-msgdb folder) number))
(luna-define-generic elmo-message-field (folder number field)
FIELD is a symbol of the field.")
(luna-define-method elmo-message-field ((folder elmo-folder) number field)
+ (when (zerop (elmo-folder-length folder))
+ (error "Cannot treat this folder correctly."))
(elmo-msgdb-get-field (elmo-folder-msgdb folder) number field))
(luna-define-method elmo-message-use-cache-p ((folder elmo-folder) number)
2003-07-28 Yuuichi Teranishi <teranisi@gohome.org>
+ * wl-summary.el (wl-summary-update-mark): Ignore errors while
+ retrieving message mark.
+ (wl-summary-redisplay-internal): Ditto.
+
+ * wl-message.el (wl-message-buffer-display): Ignore errors while
+ retrieving message-id field.
+
* wl-expire.el (wl-summary-expire): Fixed 2nd argument for `wl-append'.
(Reported by Shinichiro HIDA <shinichiro@stained-g.net>)
(wl-expire-refile-with-copy-reserve-msg): Follow the change in the
;; Use message buffer cache.
(defun wl-message-buffer-display (folder number flag
&optional force-reload unread)
- (let* ((msg-id (elmo-message-field folder number 'message-id))
+ (let* ((msg-id (ignore-errors (elmo-message-field folder number
+ 'message-id)))
(fname (elmo-folder-name-internal folder))
(hit (wl-message-buffer-cache-hit (list fname number msg-id)))
(read nil)
"Synch up persistent mark of current line with msgdb's."
(let ((number (or number (wl-summary-message-number)))
buffer-read-only cur-mark)
- (setq cur-mark (elmo-message-mark wl-summary-buffer-elmo-folder number))
- (save-excursion
- ;; set mark on buffer
- (unless (string= (wl-summary-persistent-mark) cur-mark)
- (delete-backward-char 1)
- (insert (or cur-mark " ")))
- (when wl-summary-highlight
- (wl-highlight-summary-current-line))
- (set-buffer-modified-p nil))))
+ (ignore-errors
+ (setq cur-mark
+ (elmo-message-mark wl-summary-buffer-elmo-folder number))
+ (save-excursion
+ ;; set mark on buffer
+ (unless (string= (wl-summary-persistent-mark) cur-mark)
+ (delete-backward-char 1)
+ (insert (or cur-mark " ")))
+ (when wl-summary-highlight
+ (wl-highlight-summary-current-line))))
+ (set-buffer-modified-p nil)))
+
(defsubst wl-summary-mark-as-read-internal (inverse
number-or-numbers
'leave)))
(when (elmo-message-use-cache-p folder num)
(elmo-message-set-cached folder num t))
- (if (member (elmo-message-mark wl-summary-buffer-elmo-folder
- num)
- (elmo-msgdb-unread-marks))
- (wl-summary-mark-as-read num no-folder-mark)
- (wl-summary-update-mark))
+ (ignore-errors
+ (if (member (elmo-message-mark wl-summary-buffer-elmo-folder
+ num)
+ (elmo-msgdb-unread-marks))
+ (wl-summary-mark-as-read num no-folder-mark)
+ (wl-summary-update-mark)))
(setq wl-summary-buffer-current-msg num)
(when wl-summary-recenter
(recenter (/ (- (window-height) 2) 2))