* wl-folder.el (wl-folder-guess-mailing-list-by-folder-name):
authorkaoru <kaoru>
Sun, 3 Jun 2001 18:32:32 +0000 (18:32 +0000)
committerkaoru <kaoru>
Sun, 3 Jun 2001 18:32:32 +0000 (18:32 +0000)
Fixed probrem when hostname/port/auth included folder name makes
misguess.

wl/ChangeLog
wl/wl-folder.el

index d66e062..9d940e1 100644 (file)
@@ -1,3 +1,9 @@
+2001-06-03  TAKAHASHI Kaoru  <kaoru@kaisei.org>
+
+       * wl-folder.el (wl-folder-guess-mailing-list-by-folder-name):
+       Fixed probrem when hostname/port/auth included folder name makes
+       misguess.
+
 2001-05-23  Kenichi OKADA  <okada@opaopa.org>
 
        * wl-draft.el (wl-draft): use `wl-summary-write-current-folder'
index afc5095..7c53b55 100644 (file)
@@ -2064,8 +2064,11 @@ Use `wl-subscribed-mailing-list'."
   (when (memq (elmo-folder-get-type folder)
              '(localdir imap4 maildir))
     (let (key mladdress)
-      (setq folder (substring folder 1)) ; remove folder type symbol
-      (when (string-match "[^\\./]+$" folder)
+      (setq folder                     ; make folder name simple
+           (if (eq 'imap4 (elmo-folder-get-type folder))
+               (elmo-imap4-spec-mailbox (elmo-imap4-get-spec folder))
+             (substring folder 1)))
+      (when (string-match "[^\\./]+$" folder) ; last hierarchy
        (setq key (regexp-quote
                   (concat (substring folder (match-beginning 0)) "@")))
        (setq mladdress