* elmo-maildir.el (elmo-maildir-update-current): Don't append
authorteranisi <teranisi>
Fri, 8 Nov 2002 13:54:50 +0000 (13:54 +0000)
committerteranisi <teranisi>
Fri, 8 Nov 2002 13:54:50 +0000 (13:54 +0000)
info part to the cur files when the new files already have it.
(Adviced by Jared Rhine <jared@wordzoo.com>)

elmo/ChangeLog
elmo/elmo-maildir.el

index 81deaf8..9b95789 100644 (file)
@@ -1,3 +1,9 @@
+2002-11-08  Yuuichi Teranishi  <teranisi@gohome.org>
+
+       * elmo-maildir.el (elmo-maildir-update-current): Don't append
+       info part to the cur files when the new files already have it.
+       (Adviced by Jared Rhine <jared@wordzoo.com>)
+
 2002-11-06  Yoichi NAKAYAMA  <yoichi@eken.phys.nagoya-u.ac.jp>
 
        * elmo-split.el (elmo-split-default-action): New variable.
index 8ff700d..6fe8c22 100644 (file)
@@ -214,7 +214,10 @@ LOCATION."
     (while news
       (rename-file
        (expand-file-name (car news) (expand-file-name "new" maildir))
-       (expand-file-name (concat (car news) ":2,")
+       (expand-file-name (concat
+                         (car news)
+                         (unless (string-match ":2,[A-Z]*$" (car news))
+                           ":2,"))
                         (expand-file-name "cur" maildir)))
       (setq news (cdr news)))))