+2003-11-10 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo-imap4.el (elmo-imap4-disuse-server-flag-mailbox-regexp):
+ Revival.
+ (elmo-imap4-session): Removed use-flag slot.
+ (elmo-imap4-session-select-mailbox): Undo last change.
+ (elmo-folder-use-flag-p): Use
+ elmo-imap4-disuse-server-flag-mailbox-regexp.
+
2003-11-09 Yuuichi Teranishi <teranisi@gohome.org>
* elmo-imap4.el (elmo-imap4-session): Added use-flag slot.
;;; Code:
(eval-when-compile (require 'cl))
+(defvar elmo-imap4-disuse-server-flag-mailbox-regexp "^#mh" ; UW imapd
+ "Regexp to match IMAP4 mailbox names whose message flags on server should be ignored (For STATUS command).")
+
(defvar elmo-imap4-overview-fetch-chop-length 200
"*Number of overviews to fetch in one request.")
;;; Session
(eval-and-compile
(luna-define-class elmo-imap4-session (elmo-network-session)
- (capability current-mailbox read-only flags use-flag))
+ (capability current-mailbox read-only flags))
(luna-define-internal-accessors 'elmo-imap4-session))
;;; MIME-ELMO-IMAP Location
(elmo-imap4-session-set-flags-internal
session
(nth 1 (or (assq 'permanentflags response)
- (assq 'flags response))))
- (elmo-imap4-session-set-use-flag-internal
- session
- (and (elmo-imap4-session-flag-available-p session 'read)
- (elmo-imap4-session-flag-available-p session 'important))))
+ (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))
(elmo-imap4-folder-list-flagged folder 'answered))
(luna-define-method elmo-folder-use-flag-p ((folder elmo-imap4-folder))
- (elmo-imap4-session-use-flag-internal (elmo-imap4-get-session folder)))
+ (not (string-match elmo-imap4-disuse-server-flag-mailbox-regexp
+ (elmo-imap4-folder-mailbox-internal folder))))
(luna-define-method elmo-folder-list-subfolders ((folder elmo-imap4-folder)
&optional one-level)