* wl-vars.el (wl-cache-prefetch-get-next-func): Ditto.
* wl-draft.el (wl-caesar-region-func): Ditto.
* wl-summary.el (wl-summary-exec-subr): Fixed `copy';
Keep unread status in elmo-folder-move-messages.
(wl-summary-sync-update): Set `wl-summary-buffer-msgdb'.
* elmo.el (elmo-folder-have-subfolder-p): New generic function.
* elmo-mark.el (elmo-folder-have-subfolder-p): Define.
* elmo-internal.el (elmo-folder-list-subfolders): Rewrite.
+2001-02-28 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo.el (elmo-folder-have-subfolder-p): New generic function.
+
+ * elmo-mark.el (elmo-folder-have-subfolder-p): Define.
+
+ * elmo-internal.el (elmo-folder-list-subfolders): Rewrite.
+
2001-02-27 Yuuichi Teranishi <teranisi@gohome.org>
* elmo-maildir.el (elmo-folder-msgdb-create): Fixed.
&optional one-level)
(mapcar
(lambda (x)
- (list (concat (elmo-folder-prefix-internal folder)
+ (if (elmo-folder-have-subfolder-p
+ (elmo-make-folder
+ (concat (elmo-folder-prefix-internal folder)
(symbol-name x))))
+ (list (concat (elmo-folder-prefix-internal folder)
+ (symbol-name x)))
+ (concat (elmo-folder-prefix-internal folder)
+ (symbol-name x))))
elmo-internal-folder-list))
(require 'product)
elmo-mark-default-mark)
folder)
+(luna-define-method elmo-folder-have-subfolder-p ((folder elmo-mark-folder))
+ nil)
+
(luna-define-method elmo-folder-expand-msgdb-path ((folder
elmo-mark-folder))
(expand-file-name "mark"
(a folder which have children is returned as a list)
Otherwise, all descendent folders are returned.")
+(luna-define-generic elmo-folder-have-subfolder-p (folder)
+ "Return non-nil when FOLDER has subfolders.")
+
(luna-define-generic elmo-folder-exists-p (folder)
"Returns non-nil when FOLDER exists.")
(luna-define-method elmo-folder-local-p ((folder elmo-folder))
t) ; default is local.
+(luna-define-method elmo-folder-have-subfolder-p ((folder elmo-folder))
+ t)
+
;;; Folder info
;; Folder info is a message number information cache (hashtable)
(defsubst elmo-folder-get-info (folder &optional hashtb)
+2001-02-28 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * wl-summary.el (wl-summary-buffer-message-redisplay-func): Removed.
+
+ * wl-vars.el (wl-cache-prefetch-get-next-func): Ditto.
+
+ * wl-draft.el (wl-caesar-region-func): Ditto.
+
+ * wl-summary.el (wl-summary-exec-subr): Fixed `copy';
+ Keep unread status in elmo-folder-move-messages.
+ (wl-summary-sync-update): Set `wl-summary-buffer-msgdb'.
+
2001-02-27 TAKAHASHI Kaoru <kaoru@kaisei.org>
* wl-summary.el (wl-summary-buffer-exit-function): Renamed from
(defalias-maybe 'wl-draft-mode 'ignore))
(defvar wl-draft-buf-name "Draft")
-(defvar wl-caesar-region-func nil)
(defvar wl-draft-cite-function 'wl-default-draft-cite)
(defvar wl-draft-buffer-file-name nil)
(defvar wl-draft-field-completion-list nil)
(defvar wl-summary-buffer-mime-charset nil)
(defvar wl-summary-buffer-weekday-name-lang nil)
(defvar wl-summary-buffer-thread-indent-set-alist nil)
-(defvar wl-summary-buffer-message-redisplay-func nil)
(defvar wl-summary-buffer-view 'thread)
(defvar wl-summary-buffer-message-modified nil)
(defvar wl-summary-buffer-mark-modified nil)
wl-summary-partial-highlight-above-lines
wl-summary-highlight-partial-threshold)))
(wl-highlight-summary (point) (point-max))))))
+ (setq wl-summary-buffer-msgdb (elmo-folder-msgdb folder))
(wl-delete-all-overlays)
(set-buffer-modified-p nil)
(if mes (message "%s" mes))))
(not (null (cdr dst-msgs)))
nil ; no-delete
nil ; same-number
- unread-marks))
+ unread-marks
+ t))
(error nil))
(if result ; succeeded.
(progn
(setq result nil)
(condition-case nil
(setq result (elmo-folder-move-messages
- (wl-summary-buffer-folder-name)
+ wl-summary-buffer-elmo-folder
(cdr (car dst-msgs))
- (car (car dst-msgs))
+ (wl-folder-get-elmo-folder
+ (car (car dst-msgs)))
(wl-summary-buffer-msgdb)
copy-len
copy-executed
(not (null (cdr dst-msgs)))
t ; t is no-delete (copy)
nil ; same number
- unread-marks))
+ unread-marks
+ t))
(error nil))
(if result ; succeeded.
(progn
:type '(repeat (regexp :tag "Folder Regexp"))
:group 'wl-pref)
-(defcustom wl-cache-prefetch-get-next-func 'wl-summary-default-get-next-msg
- "*A function to get message number when prefetch next message."
- :type 'function
- :group 'wl-pref)
-
-;; obsolete
-;(defvar wl-no-cache-folder-list '("^\\$.*")
-; "All folders that match this list won't be cached when reading messages.
-;Each elements are regexp of folder name.")
-
(defcustom wl-summary-always-sticky-folder-list nil
"All folders that match this list has sticky summary.
Each elements are regexp of folder name."