* elmo-pipe.el (elmo-folder-creatable-p): Don't check whether the
authorteranisi <teranisi>
Sun, 24 Nov 2002 14:59:00 +0000 (14:59 +0000)
committerteranisi <teranisi>
Sun, 24 Nov 2002 14:59:00 +0000 (14:59 +0000)
folder is creatabe or not if it already exists.

elmo/ChangeLog
elmo/elmo-pipe.el

index 2d2076e..91b106e 100644 (file)
@@ -3,6 +3,9 @@
        * utf7.el (toplevel): Check the ucs features dynamically.
        (Advice from Yoichi NAKAYAMA  <yoichi@eken.phys.nagoya-u.ac.jp>)
 
+       * elmo-pipe.el (elmo-folder-creatable-p): Don't check whether the
+       folder is creatabe or not if it already exists.
+
 2002-11-21  Yuuichi Teranishi  <teranisi@gohome.org>
 
        * elmo-nntp.el (elmo-nntp-search-primitive): Revert the last change.
index f2cfdcf..e2dfc04 100644 (file)
   (elmo-folder-newsgroups (elmo-pipe-folder-src-internal folder)))
 
 (luna-define-method elmo-folder-creatable-p ((folder elmo-pipe-folder))
-  (and (elmo-folder-creatable-p (elmo-pipe-folder-src-internal folder))
-       (elmo-folder-creatable-p (elmo-pipe-folder-dst-internal folder))))
+  (and (or
+       (elmo-folder-exists-p (elmo-pipe-folder-src-internal folder))
+       (elmo-folder-creatable-p (elmo-pipe-folder-src-internal folder)))
+       (or
+       (elmo-folder-exists-p (elmo-pipe-folder-dst-internal folder))
+       (elmo-folder-creatable-p (elmo-pipe-folder-dst-internal folder)))))
 
 (luna-define-method elmo-folder-writable-p ((folder elmo-pipe-folder))
   (elmo-folder-writable-p (elmo-pipe-folder-dst-internal folder)))