summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2010-06-23 14:38:41 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-06-28 12:57:24 +0100
commit34808945ae44bf8958bc5e1b85715588b0868290 (patch)
tree83ca538961a937e2f4491f9bc4078463fe732f40
parent362b22786e8ee61f0f2fd52ce3be7c685e96c0c4 (diff)
downloadevolution-data-server-34808945ae44bf8958bc5e1b85715588b0868290.tar.gz
Use camel_folder_sync_message() to sync messages.
The imapx back end will handle sync_message requests at a much lower priority than normal get_message requests, as is right and proper. It would help if the front end would call the correct method, so that the prioritisation actually works as expected. Otherwise, sync_message requests end up having higher priority than the requests which are updating flags and headers for changed folders -- leading to a crappy user experience. (cherry picked from commit 208b19fce147d20ce8432707fcfabc7a8e39395e)
-rw-r--r--camel/camel-offline-folder.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/camel/camel-offline-folder.c b/camel/camel-offline-folder.c
index a8d941e0b..bbeba88ec 100644
--- a/camel/camel-offline-folder.c
+++ b/camel/camel-offline-folder.c
@@ -111,8 +111,7 @@ offline_downsync_sync (CamelSession *session, CamelSessionThreadMsg *mm)
gint pc = i * 100 / m->changes->uid_added->len;
camel_operation_progress (NULL, pc);
- if ((message = camel_folder_get_message (m->folder, m->changes->uid_added->pdata[i], &mm->ex)))
- camel_object_unref (message);
+ camel_folder_sync_message (m->folder, m->changes->uid_added->pdata[i], &mm->ex);
}
} else {
camel_offline_folder_downsync ((CamelOfflineFolder *) m->folder, "(match-all)", &mm->ex);