* elmo-maildir.el (elmo-folder-message-make-temp-files): Respect
authoryoichi <yoichi>
Sun, 20 Aug 2006 08:00:31 +0000 (08:00 +0000)
committeryoichi <yoichi>
Sun, 20 Aug 2006 08:00:31 +0000 (08:00 +0000)
start-number correctly.
* elmo-search.el (elmo-folder-message-make-temp-files): Ditto.
* elmo-file.el (elmo-folder-message-make-temp-files): Ditto.

elmo/ChangeLog
elmo/elmo-file.el
elmo/elmo-maildir.el
elmo/elmo-search.el

index 2fd5cb4..b8349a4 100644 (file)
@@ -1,3 +1,10 @@
+2006-08-20  Yoichi NAKAYAMA  <yoichi@geiin.org>
+
+       * elmo-maildir.el (elmo-folder-message-make-temp-files): Respect
+       start-number correctly.
+       * elmo-search.el (elmo-folder-message-make-temp-files): Ditto.
+       * elmo-file.el (elmo-folder-message-make-temp-files): Ditto.
+
 2006-08-12  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
 
        * elmo-flag.el (elmo-flag-folder-set-minfo): New function.
index 169d55e..dbf8b0b 100644 (file)
                                                         &optional
                                                         start-number)
   (let ((temp-dir (elmo-folder-make-temporary-directory folder))
-       (cur-number (if start-number 0)))
+       (cur-number (or start-number 0)))
     (dolist (number numbers)
       (elmo-copy-file
        (elmo-message-file-name folder number)
        (expand-file-name
-       (int-to-string (if start-number (incf cur-number) number))
-       temp-dir)))
+       (int-to-string (if start-number cur-number number))
+       temp-dir))
+      (incf cur-number))
     temp-dir))
 
 (luna-define-method elmo-map-message-fetch ((folder elmo-file-folder)
index 8fa8e32..9d0b42f 100644 (file)
@@ -478,13 +478,14 @@ file name for maildir directories."
                                                         &optional
                                                         start-number)
   (let ((temp-dir (elmo-folder-make-temporary-directory folder))
-       (cur-number (if start-number 0)))
+       (cur-number (or start-number 0)))
     (dolist (number numbers)
       (elmo-copy-file
        (elmo-message-file-name folder number)
        (expand-file-name
-       (int-to-string (if start-number (incf cur-number) number))
-       temp-dir)))
+       (int-to-string (if start-number cur-number number))
+       temp-dir))
+      (incf cur-number))
     temp-dir))
 
 (luna-define-method elmo-folder-append-messages :around
index 5091831..514d875 100644 (file)
@@ -173,13 +173,14 @@ Returns non-nil if fetching was succeed.")
                                                         &optional
                                                         start-number)
   (let ((temp-dir (elmo-folder-make-temporary-directory folder))
-       (cur-number 0))
+       (cur-number (or start-number 0)))
     (dolist (number numbers)
       (elmo-copy-file
        (elmo-message-file-name folder number)
        (expand-file-name
-       (number-to-string (if start-number (incf cur-number) number))
-       temp-dir)))
+       (number-to-string (if start-number cur-number number))
+       temp-dir))
+      (incf cur-number))
     temp-dir))
 
 (luna-define-method elmo-map-message-fetch ((folder elmo-search-folder)