* elmo-imap4.el (elmo-folder-expand-msgdb-path): Don't expand
authorkaoru <kaoru>
Sun, 15 Jun 2003 15:14:05 +0000 (15:14 +0000)
committerkaoru <kaoru>
Sun, 15 Jun 2003 15:14:05 +0000 (15:14 +0000)
mailbox (e.g. for %~/something).

elmo/ChangeLog
elmo/elmo-imap4.el

index a85a60c..2130941 100644 (file)
@@ -1,5 +1,8 @@
 2003-06-15  TAKAHASHI Kaoru  <kaoru@kaisei.org>
 
+       * elmo-imap4.el (elmo-folder-expand-msgdb-path): Don't expand
+       mailbox (e.g. for %~/something).
+
        * elmo-msgdb.el (elmo-msgdb-overview-entity-get-extra-field):
        Convert field-name to lower case.
        (elmo-msgdb-overview-entity-set-extra-field): Ditto.
index b056019..4524cbd 100644 (file)
@@ -1804,15 +1804,16 @@ Return nil if no complete line has arrived."
         (setq mailbox "inbox"))
      (if (eq (string-to-char mailbox) ?/)
         (setq mailbox (substring mailbox 1 (length mailbox))))
-     (expand-file-name
-      mailbox
+     ;; don't use expand-file-name (e.g. %~/something)
+     (concat
       (expand-file-name
        (or (elmo-net-folder-user-internal folder) "nobody")
        (expand-file-name (or (elmo-net-folder-server-internal folder)
                             "nowhere")
                         (expand-file-name
                          "imap"
-                         elmo-msgdb-directory)))))))
+                         elmo-msgdb-directory)))
+      "/" mailbox))))
 
 (luna-define-method elmo-folder-status-plugged ((folder
                                                 elmo-imap4-folder))