2006-09-30 [colin] 2.5.2cvs26
authorColin Leroy <colin@colino.net>
Sat, 30 Sep 2006 17:45:27 +0000 (17:45 +0000)
committerColin Leroy <colin@colino.net>
Sat, 30 Sep 2006 17:45:27 +0000 (17:45 +0000)
* src/mh.c
Don't let the writing of .mh_sequences, which
can change the folder's mtime, let us think
we need to scan.

ChangeLog
PATCHSETS
configure.ac
src/mh.c

index 1b5906f2ec947b83bb82fe90065a9a37a143bfde..6e0a5fca5dccb256a73457e3247d5a8960def4d3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-09-30 [colin]     2.5.2cvs26
+
+       * src/mh.c
+               Don't let the writing of .mh_sequences, which
+               can change the folder's mtime, let us think
+               we need to scan.
+
 2006-09-30 [colin]     2.5.2cvs25
 
        * src/folder.c
index 7a0c77fb855091cb5dce3c32c083113c6da0b9b8..b0030c0f05c9a2bf5987e38605eb1e04c3eca5e3 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.1.2.2 -r 1.1.2.3 tools/fix_date.sh;  ) > 2.5.2cvs23.patchset
 ( cvs diff -u -r 1.16.2.40 -r 1.16.2.41 src/msgcache.c;  cvs diff -u -r 1.150.2.80 -r 1.150.2.81 src/procmsg.c;  cvs diff -u -r 1.36.2.80 -r 1.36.2.81 src/common/utils.c;  ) > 2.5.2cvs24.patchset
 ( cvs diff -u -r 1.213.2.115 -r 1.213.2.116 src/folder.c;  cvs diff -u -r 1.395.2.258 -r 1.395.2.259 src/summaryview.c;  ) > 2.5.2cvs25.patchset
+( cvs diff -u -r 1.79.2.41 -r 1.79.2.42 src/mh.c;  ) > 2.5.2cvs26.patchset
index 069c121b1b3f4e6c8ac0781dac7dbce8f44c70af..ee38645cbcde1020db6cab17c5d93058bb769263 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=5
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=25
+EXTRA_VERSION=26
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 93df162e6621386a8a64d72778fe0f58d2dcc1ab..142e9ec5430776722b6a8e8957496a661dd0317d 100644 (file)
--- a/src/mh.c
+++ b/src/mh.c
@@ -1396,6 +1396,14 @@ static void mh_write_sequences(FolderItem *item, gboolean remove_unseen)
 
 static int mh_item_close(Folder *folder, FolderItem *item)
 {
+       time_t last_mtime = (time_t)0;
+       gboolean need_scan = mh_scan_required(item->folder, item);
+       last_mtime = item->mtime;
+
        mh_write_sequences(item, FALSE);
+
+       if (item->mtime == last_mtime && !need_scan)
+               item->mtime = time(NULL);
+
        return 0;
 }