(let ((elmo-inhibit-number-mapping t) ; No need to use UIDL
msgs len)
(message "Checking %s..." (elmo-folder-name-internal src))
- ;; for load killed-list
- (elmo-folder-open src)
+ ;; Warnnig: some function requires msgdb
+ ;; but elmo-folder-open-internal do not load msgdb.
+ (elmo-folder-open-internal src)
+ (elmo-folder-set-killed-list-internal
+ src
+ (elmo-msgdb-killed-list-load (elmo-folder-msgdb-path src)))
(setq msgs (elmo-folder-list-messages src)
len (length msgs))
(when (> len elmo-display-progress-threshold)
;; Don't save msgdb here.
;; Because summary view of original folder is not updated yet.
(elmo-folder-close-internal src)
+ (elmo-folder-set-killed-list-internal src nil)
(run-hooks 'elmo-pipe-drained-hook))
(luna-define-method elmo-folder-open-internal ((folder elmo-pipe-folder))
read but not cached messages, and important messages.
If optional IGNORE-MSGDB is non-nil, current msgdb is thrown away except
read mark status. If IGNORE-MSGDB is 'visible-only, only visible messages
-\(the messages which are not in the killed-list\) are thrown away and
+\(the messages which are not in the killed-list\) are thrown away and
synchronized.
If NO-CHECK is non-nil, rechecking folder is skipped.
(save-excursion
(let ((inhibit-read-only t)
(buffer-read-only nil)
- (buf (current-buffer))
- sol eol rs re)
+ (buf (current-buffer))
+ sol eol rs re)
(beginning-of-line)
(setq sol (point))
(end-of-line)
(setq fld default))
(setq fld (elmo-string (wl-folder-get-realname fld)))
(if (string-match "\n" fld)
- (error "Not supported folder name: %s" fld))
+ (error "Not supported folder name: %s" fld))
(unless no-create
(if ignore-error
(condition-case nil
(defsubst wl-summary-next-message (num direction hereto)
(if wl-summary-buffer-next-message-function
(funcall wl-summary-buffer-next-message-function num direction hereto)
- (let ((cur-spec (cdr (assq wl-summary-move-order
+ (let ((cur-spec (cdr (assq wl-summary-move-order
(if (elmo-folder-plugged-p
wl-summary-buffer-elmo-folder)
wl-summary-move-spec-plugged-alist
(setq nums (cdr nums))))))
(setq cur-spec (cdr cur-spec))))
(car nums)))))
-
+
(defsubst wl-summary-cursor-move (direction hereto)
(when (and (eq direction 'up)
(eobp))
(when mes-win
(wl-message-select-buffer wl-message-buffer)
(run-hooks 'wl-summary-toggle-disp-folder-message-resumed-hook)
- (select-window (get-buffer-window cur-buf)))
- )
+ (select-window (get-buffer-window cur-buf))))
;; hide message window
(let ((wl-stay-folder-window t)
(mes-win (and wl-message-buffer
(when mes-win
(wl-message-select-buffer wl-message-buffer)
(run-hooks 'wl-summary-toggle-disp-folder-message-resumed-hook)
- (select-window (get-buffer-window cur-buf))))
- ))))
+ (select-window (get-buffer-window cur-buf))))))))
(run-hooks 'wl-summary-toggle-disp-folder-hook))
(defun wl-summary-toggle-disp-msg (&optional arg)
(delete-window)
(and (get-buffer-window cur-buf)
(select-window (get-buffer-window cur-buf))))
- (run-hooks 'wl-summary-toggle-disp-off-hook)))
+ (run-hooks 'wl-summary-toggle-disp-off-hook)))
(t
(if (and wl-message-buffer
(get-buffer-window wl-message-buffer)) ; already displayed
(if summary-buf
(save-excursion
(set-buffer summary-buf)
- (setq subject
+ (setq subject
(or (elmo-message-field folder number 'subject) ""))))
(set-buffer mes-buf)
(wl-draft-forward subject summary-buf)
(setq fld-buf (get-buffer wl-folder-buffer-name)))
(if (setq fld-win (get-buffer-window fld-buf))
(delete-window fld-win)))
- (setq wl-current-summary-buffer (current-buffer))
+ (setq wl-current-summary-buffer (current-buffer))
(wl-summary-mark-as-read
nil
;; not fetched, then change server-mark.