* elmo-nmz.el (elmo-folder-have-subfolder-p): Define.
authoryoichi <yoichi>
Mon, 20 Sep 2004 05:49:15 +0000 (05:49 +0000)
committeryoichi <yoichi>
Mon, 20 Sep 2004 05:49:15 +0000 (05:49 +0000)
elmo/ChangeLog
elmo/elmo-nmz.el

index 7242b94..8f66717 100644 (file)
@@ -9,6 +9,7 @@
        group entry.
        (elmo-folder-exists-p): "[" is empty.
        (elmo-folder-list-subfolders): New function.
+       (elmo-folder-have-subfolder-p): Ditto.
 
 2004-09-19  Yoichi NAKAYAMA  <yoichi@geiin.org>
 
index aef572e..e8718c4 100644 (file)
@@ -235,6 +235,9 @@ If the value is a list, all elements are used as index paths for namazu."
 (luna-define-method elmo-folder-exists-p ((folder elmo-nmz-folder))
   (elmo-nmz-folder-pattern-internal folder))
 
+(luna-define-method elmo-folder-have-subfolder-p ((folder elmo-nmz-folder))
+  (null (elmo-nmz-folder-pattern-internal folder)))
+
 (luna-define-method elmo-folder-list-subfolders ((folder elmo-nmz-folder)
                                                 &optional one-level)
   (mapcar (lambda (name) (elmo-recover-string-from-filename name))