+2010-04-14 David Maus <dmaus@ictsoc.de>
+
+ * elmo-imap4.el (elmo-imap4-disabled-extension): New
+ variable. List of server extensions that are disabled on the
+ client side.
+ (elmo-imap4-session-capable-p): Honour list of disabled
+ extensions.
+
2010-03-17 David Maus <dmaus@ictsoc.de>
* elmo-imap4.el (elmo-imap4-folder-list-flagged)
"Extra namespace alist.
A list of cons cell like: (REGEXP . DELIMITER).
REGEXP should have a grouping for namespace prefix.")
+
+(defvar elmo-imap4-disabled-extensions nil
+ "List of server extensions that are disabled on the client side.")
+
;;
;;; internal variables
;;
(luna-define-internal-accessors 'elmo-imap4-session))
(defmacro elmo-imap4-session-capable-p (session capability)
- `(memq ,capability (elmo-imap4-session-capability-internal ,session)))
+ `(and (memq ,capability (elmo-imap4-session-capability-internal ,session))
+ (not (memq ,capability elmo-imap4-disabled-extensions))))
;;; MIME-ELMO-IMAP Location
(eval-and-compile