From: teranisi Date: Tue, 19 Nov 2002 02:37:45 +0000 (+0000) Subject: * elmo-imap4.el (elmo-folder-list-subfolders): Check the return value X-Git-Tag: wl-2_10_0pre3~10 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee7fb50ce8fecd0af14f583db1075c47855ec2b5;p=elisp%2Fwanderlust.git * elmo-imap4.el (elmo-folder-list-subfolders): Check the return value of elmo-string-matched-assoc to use match-data. (Thanks to Mito ) --- diff --git a/elmo/ChangeLog b/elmo/ChangeLog index 7166c01..99aa4bd 100644 --- a/elmo/ChangeLog +++ b/elmo/ChangeLog @@ -1,3 +1,9 @@ +2002-11-19 Yuuichi Teranishi + + * elmo-imap4.el (elmo-folder-list-subfolders): Check the return value + of elmo-string-matched-assoc to use match-data. + (Thanks to Mito ) + 2002-11-14 Yuuichi Teranishi * elmo-msgdb.el (elmo-msgdb-get-message-id-from-buffer): Added diff --git a/elmo/elmo-imap4.el b/elmo/elmo-imap4.el index f45ed52..6d05863 100644 --- a/elmo/elmo-imap4.el +++ b/elmo/elmo-imap4.el @@ -1892,15 +1892,15 @@ Return nil if no complete line has arrived." (let* ((root (elmo-imap4-folder-mailbox-internal folder)) (session (elmo-imap4-get-session folder)) (prefix (elmo-folder-prefix-internal folder)) - (delim (or - (cdr + (namespace-assoc (elmo-string-matched-assoc root (with-current-buffer (elmo-network-session-buffer session) elmo-imap4-server-namespace))) + (delim (or (cdr namespace-assoc) elmo-imap4-default-hierarchy-delimiter)) ;; Append delimiter when root with namespace. - (root (if (and (match-end 1) + (root (if (and namespace-assoc (string= (substring root (match-end 1)) "")) (concat root delim)