+2001-06-26 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo.el (elmo-folder-synchronize): Return list of nil when no
+ updates.
+
2001-06-21 Yuuichi Teranishi <teranisi@gohome.org>
* elmo.el (elmo-generic-folder-append-messages): Fixed logic.
\(NEW-MSGDB DELETE-LIST CROSSED\)
NEW-MSGDB is the newly appended msgdb.
DELETE-LIST is a list of deleted message number.
-CROSSED is cross-posted message number."
+CROSSED is cross-posted message number.
+If update process is interrupted, return nil."
(let ((killed-list (elmo-folder-killed-list-internal folder))
(before-append t)
number-alist mark-alist
(progn
(elmo-folder-update-number folder)
(elmo-folder-process-crosspost folder)
- nil ; no update.
+ (list nil nil nil) ; no updates.
)
(if delete-list (elmo-msgdb-delete-msgs
(elmo-folder-msgdb folder) delete-list))
+2001-06-26 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * wl-summary.el (wl-summary-sync-update): If sync-result is non-nil,
+ do update process;
+ Don't update marks when update process is interrupted.
+
2001-06-25 Yuuichi Teranishi <teranisi@gohome.org>
* wl-summary.el (wl-summary-reply): Fixed problem when
(setq new-msgdb (nth 0 sync-result))
(setq delete-list (nth 1 sync-result))
(setq crossed (nth 2 sync-result))
- (if (or (and sync-all sync-result)
- sync-result)
+ (if sync-result
(progn
;; Setup sync-all
(if sync-all (wl-summary-sync-all-init))
(if elmo-use-database
(elmo-database-close))
(run-hooks 'wl-summary-sync-updated-hook)
- (setq mes (format "Updated (-%d/+%d) message(s)"
- (length delete-list) num)))
- (setq mes (format
- "No updates for \"%s\"" (elmo-folder-name-internal folder))))
+ (setq mes
+ (if (and (eq (length delete-list) 0)
+ (eq num 0))
+ (format
+ "No updates for \"%s\"" (elmo-folder-name-internal
+ folder))
+ (format "Updated (-%d/+%d) message(s)"
+ (length delete-list) num))))
+ (setq mes "Quit updating."))
;; synchronize marks.
- (if wl-summary-auto-sync-marks
+ (if (and wl-summary-auto-sync-marks sync-result)
(wl-summary-sync-marks))
;; scoring
(when wl-use-scoring