+2003-11-05 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * modb-standard.el (elmo-msgdb-set-flag): Unset 'new flag when
+ read flag is set.
+ (elmo-msgdb-set-flag): Don't remove 'new flag unconditionally.
+ (elmo-msgdb-unset-flag): Ditto.
+
+2003-11-05 Andreas Fuchs <asf@boinkor.net>
+
+ * elmo-split.el (elmo-split): Return split message count.
+
2003-11-05 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* elmo-msgdb.el (elmo-flag-table-get): Check cached if saved flags
(format "%d messages are splitted" count)))
(if (eq fcount 0)
"."
- (format " (%d failure)." fcount))))))
+ (format " (%d failure)." fcount))))
+ count))
(defun elmo-split-subr (folder &optional reharsal)
(let ((elmo-inhibit-display-retrieval-progress t)
number flag)
(case flag
(read
+ (elmo-msgdb-unset-flag msgdb number 'new)
(elmo-msgdb-unset-flag msgdb number 'unread))
(uncached
(elmo-msgdb-unset-flag msgdb number 'cached))
(let* ((cur-flags (modb-standard-message-flags msgdb number))
(new-flags (copy-sequence cur-flags))
diff)
- (and (memq 'new new-flags)
- (setq new-flags (delq 'new new-flags)))
(or (memq flag new-flags)
(setq new-flags (cons flag new-flags)))
(when (and (eq flag 'unread)
(let* ((cur-flags (modb-standard-message-flags msgdb number))
(new-flags (copy-sequence cur-flags))
diff)
- (and (memq 'new new-flags)
- (setq new-flags (delq 'new new-flags)))
(and (memq flag new-flags)
(setq new-flags (delq flag new-flags)))
(when (and (eq flag 'unread)