From ff91646452fd4bcddbfc1d6acc5d18c99cf021f6 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 6 Jul 2001 20:19:22 +0000 Subject: Freeze and Thaw the folder. 2001-07-06 Jeffrey Stedfast * folder-browser.c (folder_browser_copy): Freeze and Thaw the folder. svn path=/trunk/; revision=10855 --- mail/folder-browser.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mail/folder-browser.c') diff --git a/mail/folder-browser.c b/mail/folder-browser.c index d1bf206ffa..892af9ae0e 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -628,6 +628,7 @@ folder_browser_copy (GtkWidget *menuitem, FolderBrowser *fb) g_byte_array_append (bytes, " ", 1); /* write the uids */ + camel_folder_freeze (fb->folder); for (i = 0; i < uids->len; i++) { if (cut) { camel_folder_set_message_flags (fb->folder, uids->pdata[i], @@ -640,6 +641,7 @@ folder_browser_copy (GtkWidget *menuitem, FolderBrowser *fb) if (i + 1 < uids->len) g_byte_array_append (bytes, "", 1); } + camel_folder_thaw (fb->folder); g_ptr_array_free (uids, TRUE); @@ -1653,8 +1655,8 @@ do_mark_seen (gpointer data) FolderBrowser *fb = data; if (fb->new_uid && fb->loaded_uid - && strcmp(fb->new_uid, fb->loaded_uid) == 0) { - camel_folder_set_message_flags(fb->folder, fb->new_uid, CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN); + && strcmp (fb->new_uid, fb->loaded_uid) == 0) { + camel_folder_set_message_flags (fb->folder, fb->new_uid, CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN); } return FALSE; -- cgit