(elmo-imap4-set-flag): Treat \Deleted flag as an exception.
        (elmo-imap4-disuse-server-flag-mailbox-regexp): Abolish.
        (elmo-folder-use-flag-p): Always return t.
+       (elmo-imap4-session-select-mailbox): Use value of `flags' if
+       `permanentflags' does not exist.
+       (elmo-folder-open): Ditto.
 
 2003-10-06  Yuuichi Teranishi  <teranisi@gohome.org>
 
 
               (nth 1 (assq 'read-only (assq 'ok response))))
              (elmo-imap4-session-set-flags-internal
               session
-              (nth 1 (assq 'permanentflags response))))
+              (nth 1 (or (assq 'permanentflags response)
+                         (assq 'flags response)))))
          (elmo-imap4-session-set-current-mailbox-internal session nil)
          (if (and (eq no-error 'notify-bye)
                   (elmo-imap4-response-bye-p response))
                     (nth 1 (assq 'read-only (assq 'ok response))))
                    (elmo-imap4-session-set-flags-internal
                     session
-                    (nth 1 (assq 'permanentflags response))))
+                    (nth 1 (or (assq 'permanentflags response)
+                               (assq 'flags response)))))
                (elmo-imap4-session-set-current-mailbox-internal session nil)
                (if (elmo-imap4-response-bye-p response)
                    (elmo-imap4-process-bye session)