* elmo.el (elmo-folder-unmark-read): Added argument `ignore-flag'.
authorteranisi <teranisi>
Thu, 19 Sep 2002 05:36:04 +0000 (05:36 +0000)
committerteranisi <teranisi>
Thu, 19 Sep 2002 05:36:04 +0000 (05:36 +0000)
* elmo-filter.el (elmo-folder-unmark-read): Ditto.

* elmo-map.el (elmo-folder-unmark-read): Ditto.

* elmo-multi.el (elmo-folder-unmark-read): Ditto.

* elmo-net.el (elmo-folder-unmark-read): Ditto.

* elmo-pipe.el (elmo-folder-unmark-read): Ditto.

elmo/ChangeLog
elmo/elmo-filter.el
elmo/elmo-map.el
elmo/elmo-multi.el
elmo/elmo-net.el
elmo/elmo-pipe.el
elmo/elmo.el

index b2e7e95..cbe58ea 100644 (file)
@@ -1,3 +1,17 @@
+2002-09-19  Yuuichi Teranishi  <teranisi@gohome.org>
+
+       * elmo.el (elmo-folder-unmark-read): Added argument `ignore-flag'.
+
+       * elmo-filter.el (elmo-folder-unmark-read): Ditto.
+
+       * elmo-map.el (elmo-folder-unmark-read): Ditto.
+
+       * elmo-multi.el (elmo-folder-unmark-read): Ditto.
+
+       * elmo-net.el (elmo-folder-unmark-read): Ditto.
+
+       * elmo-pipe.el (elmo-folder-unmark-read): Ditto.
+
 2002-09-18  Yuuichi Teranishi  <teranisi@gohome.org>
 
        * elmo-imap4.el (elmo-imap4-parse-status): Skip white spaces after
index 3ce13bb..b8d29bb 100644 (file)
 
 (luna-define-method elmo-folder-unmark-read :around ((folder
                                                      elmo-filter-folder)
-                                                    numbers)
+                                                    numbers
+                                                    &optional ignore-flag)
   (elmo-folder-unmark-read (elmo-filter-folder-target-internal folder)
-                          numbers)
+                          numbers ignore-flag)
   (luna-call-next-method))
 
 (luna-define-method elmo-folder-mark-as-important :around ((folder
index fee7c2c..526e587 100644 (file)
    (elmo-map-folder-numbers-to-locations folder numbers)))
 
 (luna-define-method elmo-folder-unmark-read :before ((folder elmo-map-folder)
-                                                    numbers)
-  (elmo-map-folder-unmark-read
-   folder
-   (elmo-map-folder-numbers-to-locations folder numbers)))
+                                                    numbers
+                                                    &optional ignore-flags)
+  (unless ignore-flags
+    (elmo-map-folder-unmark-read
+     folder
+     (elmo-map-folder-numbers-to-locations folder numbers))))
 
 (luna-define-method elmo-folder-mark-as-read :before ((folder
                                                       elmo-map-folder)
index 3f3cb47..d756f3c 100644 (file)
 
 (luna-define-method elmo-folder-unmark-read :before ((folder
                                                      elmo-multi-folder)
-                                                    numbers)
+                                                    numbers
+                                                    &optional ignore-flag)
   (dolist (folder-numbers (elmo-multi-make-folder-numbers-list folder numbers))
     (elmo-folder-unmark-read (car folder-numbers)
-                            (cdr folder-numbers))))
+                            (cdr folder-numbers)
+                            ignore-flag)))
 
 (luna-define-method elmo-folder-mark-as-answered :before ((folder
                                                           elmo-multi-folder)
index e7a9a4b..34e1143 100644 (file)
@@ -476,8 +476,10 @@ Returned value is searched from `elmo-network-stream-type-alist'."
                        numbers))))
 
 (luna-define-method elmo-folder-unmark-read :before ((folder elmo-net-folder)
-                                                    numbers)
-  (when (elmo-folder-use-flag-p folder)
+                                                    numbers
+                                                    &optional ignore-flag)
+  (when (and (elmo-folder-use-flag-p folder)
+            (not ignore-flag))
     (if (elmo-folder-plugged-p folder)
        (elmo-folder-send folder 'elmo-folder-unmark-read-plugged numbers)
       (elmo-folder-send folder 'elmo-folder-unmark-read-unplugged numbers))))
index ea42578..3470d41 100644 (file)
                            numbers ignore-flag))
 
 (luna-define-method elmo-folder-unmark-read ((folder elmo-pipe-folder)
-                                             numbers)
+                                            numbers
+                                            &optional ignore-flag)
   (elmo-folder-unmark-read (elmo-pipe-folder-dst-internal folder)
-                          numbers))
+                          numbers ignore-flag))
 
 (luna-define-method elmo-folder-unmark-important ((folder elmo-pipe-folder)
                                                  numbers)
index 2047f62..117184c 100644 (file)
@@ -344,16 +344,19 @@ NUMBERS is a list of message numbers to be processed.")
 FOLDER is the ELMO folder structure.
 NUMBERS is a list of message numbers to be processed.")
 
-(luna-define-generic elmo-folder-unmark-read (folder numbers)
+(luna-define-generic elmo-folder-unmark-read (folder numbers
+                                                    &optional ignore-flags)
   "Un-mark messages as read.
 FOLDER is the ELMO folder structure.
-NUMBERS is a list of message numbers to be processed.")
+NUMBERS is a list of message numbers to be processed.
+If IGNORE-FLAGS is non-nil, folder flags are not updated.")
 
 (luna-define-generic elmo-folder-mark-as-read (folder numbers
                                                      &optional ignore-flags)
   "Mark messages as read.
 FOLDER is the ELMO folder structure.
-NUMBERS is a list of message numbers to be processed.")
+NUMBERS is a list of message numbers to be processed.
+If IGNORE-FLAGS is non-nil, folder flags are not updated.")
 
 (luna-define-generic elmo-folder-unmark-answered (folder numbers)
   "Un-mark messages as answered.
@@ -1170,7 +1173,9 @@ FIELD is a symbol of the field."
                             number
                             'important))))
 
-(luna-define-method elmo-folder-unmark-read ((folder elmo-folder) numbers)
+(luna-define-method elmo-folder-unmark-read ((folder elmo-folder)
+                                            numbers
+                                            &optional ignore-flags)
   (when (elmo-folder-msgdb-internal folder)
     (dolist (number numbers)
       (elmo-msgdb-unset-status (elmo-folder-msgdb folder)