+2003-11-09 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo-imap4.el (elmo-imap4-session): Added use-flag slot.
+ (elmo-imap4-session-select-mailbox): Set it up.
+ (elmo-folder-use-flag-p): Return value of use-flag slot.
+
2003-11-07 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* elmo-msgdb.el (elmo-msgdb-flag-table): Fixed problem when
;;; Session
(eval-and-compile
(luna-define-class elmo-imap4-session (elmo-network-session)
- (capability current-mailbox read-only flags))
+ (capability current-mailbox read-only flags use-flag))
(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)))))
+ (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))))
(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))
- t)
+ (elmo-imap4-session-use-flag-internal (elmo-imap4-get-session folder)))
(luna-define-method elmo-folder-list-subfolders ((folder elmo-imap4-folder)
&optional one-level)
(setq messages (elmo-imap4-response-value response 'messages))
(setq uidnext (elmo-imap4-response-value response 'uidnext))
(setq killed (elmo-msgdb-killed-list-load (elmo-folder-msgdb-path folder)))
- ;;
+ ;;
(when killed
(when (and (consp (car killed))
(eq (car (car killed)) 1))