+2004-09-19 Yoichi NAKAYAMA <yoichi@geiin.org>
+
+ * elmo-flag.el (elmo-folder-delete): Update elmo-global-flag-list.
+
2004-09-14 Tetsurou Okazaki <okazaki@be.to>
* elmo-filter.el (elmo-folder-local-p): Define.
(elmo-global-flag-set 'important nil nil (car elem))))))
(message "Upgrading flag structure...done")))
+(luna-define-method elmo-folder-delete :around ((folder elmo-flag-folder))
+ (let ((flag (elmo-flag-folder-flag-internal folder)))
+ (when (luna-call-next-method)
+ (setq elmo-global-flag-list (delq flag elmo-global-flag-list))
+ t)))
+
(require 'product)
(product-provide (provide 'elmo-flag) (require 'elmo-version))