if folder type is `'flag'.
(wl-summary-mark-as-important): Ditto.
* elmo-multi.el (elmo-folder-unset-flag): Ignore errors.
* elmo-flag.el (elmo-folder-unset-flag): Define.
(elmo-global-flag-detach): Do process when the flag is not target
flag.
+2004-10-24 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+
+ * elmo-multi.el (elmo-folder-unset-flag): Ignore errors.
+
+ * elmo-flag.el (elmo-folder-unset-flag): Define.
+ (elmo-global-flag-detach): Do process when the flag is not target
+ flag.
+
2004-10-18 Yoichi NAKAYAMA <yoichi@geiin.org>
* modb-entity.el (elmo-msgdb-prefer-in-reply-to-for-parent): New
&optional flag number)
(error "Cannot append to the flag folder"))
+(luna-define-method elmo-folder-unset-flag :before ((folder elmo-flag-folder)
+ numbers
+ flag
+ &optional is-local)
+ (when (eq flag (elmo-flag-folder-flag-internal folder))
+ (error "Cannot unset flag `%s' in this folder." flag)))
+
;;; Utilities
(defmacro elmo-flag-get-folder (flag)
the message is not flagged in any folder.
If DELETE-IF-NONE is a symbol `always',
delete message without flagged in other folder."
- (unless (eq (elmo-folder-type-internal folder) 'flag)
+ (unless (and (eq (elmo-folder-type-internal folder) 'flag)
+ (eq (elmo-flag-folder-flag-internal folder) flag))
(let ((flag-folder (elmo-flag-get-folder flag))
elem key)
(when flag-folder
flag
&optional is-local)
(dolist (pair (elmo-multi-make-folder-numbers-list folder numbers))
- (elmo-folder-unset-flag (car pair) (cdr pair) flag is-local)))
+ (ignore-errors
+ (elmo-folder-unset-flag (car pair) (cdr pair) flag is-local))))
(luna-define-method elmo-folder-list-flagged ((folder elmo-multi-folder)
flag
+2004-10-24 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+
+ * wl-summary.el (wl-summary-set-flags): Allow flag operation even
+ if folder type is `'flag'.
+ (wl-summary-mark-as-important): Ditto.
+
2004-10-16 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* wl-address.el (wl-address-minibuffer-history): New variable.
message is not displayed yet.
(wl-summary-prev-page): Ditto.
-2002-03-11 J\e,Ai\e(Br\e,At\e(Bme Marant <jerome.marant@free.fr>
+2002-03-11 J\e.A\eNir\eNtme Marant <jerome.marant@free.fr>
* wl-folder.el (wl-folder-mode-menu-spec): Fixed typo.
(defun wl-summary-set-flags (&optional remove)
(interactive "P")
- (if (eq 'flag (elmo-folder-type-internal wl-summary-buffer-elmo-folder))
- (error "Cannot process flags in this folder"))
(wl-summary-set-flags-internal nil nil nil remove))
(defun wl-summary-mark-as-important (&optional prompt)
(interactive "P")
- (if (eq 'flag (elmo-folder-type-internal wl-summary-buffer-elmo-folder))
- (error "Cannot process flags in this folder"))
(if prompt
(wl-summary-set-flags-internal)
(wl-summary-set-persistent-mark-internal