+2004-03-15 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
+
+ * elmo-imap4.el (elmo-folder-list-subfolders): Add root mailbox
+ if it is not contained in the response(A workaround for courier-imap).
+
2004-03-11 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* elmo-imap4.el (elmo-folder-set-flag-plugged): Fix mismatched
(elmo-imap4-send-command-wait
session
(list "list " (elmo-imap4-mailbox root) " *"))))
+ ;; The response of Courier-imap doesn't contain a specified folder itself.
+ (unless (member root result)
+ (setq result
+ (append result
+ (elmo-imap4-response-get-selectable-mailbox-list
+ (elmo-imap4-send-command-wait
+ session
+ (list "list \"\" " (elmo-imap4-mailbox root)))))))
(when (or (not (string= (elmo-net-folder-user-internal folder)
elmo-imap4-default-user))
(not (eq (elmo-net-folder-auth-internal folder)
(and (memq 'answered flags)
'("\\Answered")))
" ")
+ ;; XX KEYWORD flags
") ")
" () ")
(elmo-imap4-buffer-literal send-buffer))))