error occured while updating flag table.
* modb-standard.el (modb-standard-load-entity): Cause an error when
entity format is for 2.15.0 or later.
+2005-04-01 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo.el (elmo-folder-synchronize): Clear msgdb even when an
+ error occured while updating flag table.
+
+ * modb-standard.el (modb-standard-load-entity): Cause an error when
+ entity format is for 2.15.0 or later.
+
2005-03-25 Yuuichi Teranishi <teranisi@gohome.org>
* 2.14.0 is released.
(flag-table (elmo-flag-table-load (elmo-folder-msgdb-path folder)))
(before-append t))
(when ignore-msgdb
- (elmo-msgdb-flag-table (elmo-folder-msgdb folder) flag-table)
- (elmo-folder-clear folder (not disable-killed)))
+ (unwind-protect
+ (elmo-msgdb-flag-table (elmo-folder-msgdb folder) flag-table)
+ (elmo-folder-clear folder (not disable-killed))))
(unless no-check (elmo-folder-check folder))
(condition-case nil
(let ((killed-list (elmo-folder-killed-list-internal folder))
(defun modb-standard-load-entity (modb path &optional section)
(let ((table (or (modb-standard-entity-map-internal modb)
(elmo-make-hash (elmo-msgdb-length modb))))
+ (entities (elmo-object-load
+ (expand-file-name
+ (modb-standard-entity-filename section)
+ path)))
number msgid)
- (dolist (entity (elmo-object-load
- (expand-file-name
- (modb-standard-entity-filename section)
- path)))
+ (when (symbolp (car entities))
+ (error "Unsupported msgdb structure detected. Please re-create msgdb"))
+ (dolist (entity entities)
(setq number (elmo-msgdb-message-entity-number
(elmo-message-entity-handler entity)
entity)