aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-11-14 10:00:00 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-11-14 10:00:00 +0000
commitf5c004ce24914f4f72d63ca1fa4ccaecc4414c90 (patch)
tree5fa56531d8632e8fabc05424f8de63e022839fe6 /libsylph
parent6de6dc90979b10311f9a43536a3b1566a2981b84 (diff)
fixes occasional summary update failure on win32 and some filesystems.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@744 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r--libsylph/mbox.c3
-rw-r--r--libsylph/mh.c8
2 files changed, 8 insertions, 3 deletions
diff --git a/libsylph/mbox.c b/libsylph/mbox.c
index 854c1105..83d65897 100644
--- a/libsylph/mbox.c
+++ b/libsylph/mbox.c
@@ -231,9 +231,6 @@ gint proc_mbox(FolderItem *dest, const gchar *mbox, GHashTable *folder_table)
drop_folder));
}
if (val == 0) {
- /* force updating */
- if (FOLDER_IS_LOCAL(drop_folder->folder))
- drop_folder->mtime = 0;
if (folder_table) {
g_hash_table_insert(folder_table,
drop_folder,
diff --git a/libsylph/mh.c b/libsylph/mh.c
index f397eaf9..8015d5ba 100644
--- a/libsylph/mh.c
+++ b/libsylph/mh.c
@@ -422,6 +422,7 @@ static gint mh_add_msgs(Folder *folder, FolderItem *dest, GSList *file_list,
dest->last_num++;
dest->total++;
dest->updated = TRUE;
+ dest->mtime = 0;
if (fileinfo->flags) {
if (MSG_IS_RECEIVED(*fileinfo->flags)) {
@@ -511,9 +512,11 @@ static gint mh_do_move_msgs(Folder *folder, FolderItem *dest, GSList *msglist)
g_free(destfile);
src->total--;
src->updated = TRUE;
+ src->mtime = 0;
dest->last_num++;
dest->total++;
dest->updated = TRUE;
+ dest->mtime = 0;
if (fp) {
SET_DEST_MSG_FLAGS(fp, dest, dest->last_num,
@@ -633,6 +636,7 @@ static gint mh_copy_msgs(Folder *folder, FolderItem *dest, GSList *msglist)
dest->last_num++;
dest->total++;
dest->updated = TRUE;
+ dest->mtime = 0;
if (fp) {
SET_DEST_MSG_FLAGS(fp, dest, dest->last_num,
@@ -668,6 +672,7 @@ static gint mh_remove_msg(Folder *folder, FolderItem *item, MsgInfo *msginfo)
item->total--;
item->updated = TRUE;
+ item->mtime = 0;
if (MSG_IS_NEW(msginfo->flags))
item->new--;
if (MSG_IS_UNREAD(msginfo->flags))
@@ -695,6 +700,7 @@ static gint mh_remove_all_msg(Folder *folder, FolderItem *item)
item->new = item->unread = item->total = 0;
item->last_num = 0;
item->updated = TRUE;
+ item->mtime = 0;
}
return val;
@@ -779,6 +785,7 @@ static gint mh_scan_folder_full(Folder *folder, FolderItem *item,
}
item->updated = TRUE;
+ item->mtime = 0;
debug_print(_("Last number in dir %s = %d\n"), item->path, max);
item->last_num = max;
@@ -1423,6 +1430,7 @@ static void mh_scan_tree_recursive(FolderItem *item)
item->unread = unread;
item->total = n_msg;
item->updated = TRUE;
+ item->mtime = 0;
}
}