+2000-11-02 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo-util.el (elmo-copy-file): Don't cause an error after
+ `add-name-to-file' failed.
+
+ * elmo-pipe.el (elmo-pipe-drain): List folder before loading msgdb.
+ (Fix by HIROSE Yuuji <yuuji@gentei.org>)
+
2000-11-01 TAKAHASHI Kaoru <kaoru@kaisei.org>
* elmo-version.el (elmo-version): Up to 2.3.93.
(defvar elmo-pipe-drained-hook nil "A hook called when the pipe is flushed.")
(defun elmo-pipe-drain (src dst)
- (let ((msgdb (elmo-msgdb-load src))
+ (let ((srclist (elmo-list-folder src))
+ (msgdb (elmo-msgdb-load src))
elmo-nntp-use-cache
elmo-imap4-use-cache
elmo-pop3-use-cache ; Inhibit caching while moving messages.
elmo-pop3-use-uidl) ; No need to use UIDL
(message "Checking %s..." src)
- (elmo-move-msgs src (elmo-list-folder src) dst msgdb)
+ (elmo-move-msgs src srclist dst msgdb)
;; Don't save msgdb here.
;; Because summary view of original folder is not updated yet.
;; (elmo-msgdb-save src msgdb)
(defsubst elmo-copy-file (src dst)
(condition-case err
(elmo-add-name-to-file src dst t)
- (error (copy-file src dst t)
- (error "Copy file failed"))))
+ (error (copy-file src dst t))))
(defsubst elmo-buffer-exists-p (buffer)
(if (bufferp buffer)