+2000-08-31 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * wl-summary.el (wl-summary-sync-update3): Call `elmo-commit'.
+
+ * wl-folder.el (wl-folder-confirm-existence): Added optional
+ argument `force'.
+ (wl-folder-sync-entity): Call `wl-folder-confirm-existence'.
+
2000-08-30 OKAZAKI Tetsurou <okazaki@be.to>
* wl-summary.el (wl-summary-refile-subr): Assume
(wl-folder-sync-entity (car flist) unread-only)
(setq flist (cdr flist)))))
((stringp entity)
+ (wl-folder-confirm-existence entity 'force)
(let ((nums (wl-folder-get-entity-info entity))
(wl-summary-highlight (if (or (wl-summary-sticky-p entity)
(wl-summary-always-sticky-folder-p
(error "Create folder failed")))
(error "Folder %s is not created" entity))))
-(defun wl-folder-confirm-existence (folder)
- (unless (or (wl-folder-entity-exists-p folder)
- (file-exists-p (elmo-msgdb-expand-path folder))
- (elmo-folder-exists-p folder))
- (wl-folder-create-subr folder)))
+(defun wl-folder-confirm-existence (folder &optional force)
+ (if force
+ (unless (elmo-folder-exists-p folder)
+ (wl-folder-create-subr folder))
+ (unless (or (wl-folder-entity-exists-p folder)
+ (file-exists-p (elmo-msgdb-expand-path folder))
+ (elmo-folder-exists-p folder))
+ (wl-folder-create-subr folder))))
(provide 'wl-folder)
(wl-summary-flush-pending-append-operations seen-list))
(goto-char (point-max))
(message "Checking folder diff...")
+ (elmo-commit folder)
(setq in-folder (elmo-list-folder folder))
(setq in-db (sort (mapcar 'car number-alist) '<))
(when (or (eq msgdb nil) ; trick for unplugged...