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-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.
&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)
&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
&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)