* elmo-split.el (elmo-split): Fixed logic.
authorteranisi <teranisi>
Fri, 12 Jul 2002 07:12:44 +0000 (07:12 +0000)
committerteranisi <teranisi>
Fri, 12 Jul 2002 07:12:44 +0000 (07:12 +0000)
Display "Test:" instead of "Folder:" when reharsal.

elmo/ChangeLog
elmo/elmo-split.el

index 6d4d6f0..92f1289 100644 (file)
@@ -1,6 +1,8 @@
 2002-07-12  Yuuichi Teranishi  <teranisi@gohome.org>
 
        * elmo-split.el: New file.
+       (elmo-split): Fixed logic.
+       Display "Test:" instead of "Folder:" when reharsal.
 
        * elmo-imap4.el (elmo-folder-append-buffer): Set flag as empty
        explicitly.
index a92a71e..d18b590 100644 (file)
@@ -256,21 +256,24 @@ If prefix argument ARG is specified, do a reharsal (no harm)."
                                 (incf fcount)))
                        (unless failure
                          (ignore-errors
-                           (elmo-folder-delete-messages folder (list msg)))
-                         (elmo-split-log
-                          (concat "From "
-                                  (nth 1 (std11-extract-address-components
-                                          (or (std11-field-body "from") "")))
-                                  "  " (or (std11-field-body "date") "") "\n"
-                                  " Subject: "
-                                  (eword-decode-string (or (std11-field-body
-                                                            "subject") ""))
-                                  "\n"
-                                  "  Folder: " fname "/0" "\n")
-                          reharsal)
-                         (incf count))
-                       (unless (eq (nth 2 rule) 'continue)
-                         (throw 'terminate nil)))))))
+                           (elmo-folder-delete-messages folder (list msg))))
+                       (incf count))
+                     (elmo-split-log
+                      (concat "From "
+                              (nth 1 (std11-extract-address-components
+                                      (or (std11-field-body "from") "")))
+                              "  " (or (std11-field-body "date") "") "\n"
+                              " Subject: "
+                              (eword-decode-string (or (std11-field-body
+                                                        "subject") ""))
+                              "\n"
+                              (if reharsal
+                                  "  Test: "
+                                "  Folder: ")
+                              fname "/0" "\n")
+                      reharsal)
+                     (unless (eq (nth 2 rule) 'continue)
+                       (throw 'terminate nil))))))
              (elmo-progress-notify 'elmo-split)))
          (elmo-folder-close-internal folder))
       (elmo-progress-clear 'elmo-split))