the mailbox does not exist.
+2000-08-30 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo-imap4.el (elmo-imap4-folder-exists-p): Don't cause an error when
+ the mailbox does not exist.
+
2000-08-30 OKAZAKI Tetsurou <okazaki@be.to>
* elmo-imap4.el (elmo-imap4-send-command): Remove unused local variable.
result)))
(defun elmo-imap4-folder-exists-p (spec)
- (elmo-imap4-send-command-wait
- (elmo-imap4-get-session spec)
- (list "status " (elmo-imap4-mailbox (elmo-imap4-spec-mailbox spec))
- " (messages)")))
+ (let ((session (elmo-imap4-get-session spec)))
+ (elmo-imap4-read-ok
+ session
+ (elmo-imap4-send-command
+ session
+ (list "status " (elmo-imap4-mailbox (elmo-imap4-spec-mailbox spec))
+ " (messages)")))))
(defun elmo-imap4-folder-creatable-p (spec)
t)