[evolution-activesync: 1/5] Fix email headers fetching bug
- From: dwmw2 <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-activesync: 1/5] Fix email headers fetching bug
- Date: Mon, 13 Apr 2015 13:32:25 +0000 (UTC)
commit 1ff2e0e18eb83e192ea7be0798a71416036ee44c
Author: Oliver Luo <lyc pku eecs gmail com>
Date: Sun Apr 12 21:07:52 2015 +0800
Fix email headers fetching bug
When fetching email headers more than 4KiB with the call
"sync_folder_email" in the original code, the rest data will be
truncated, and the summary fetched is not complete. Fix this to fetch
all the metadata, but not the whole email to avoid extra network
traffic.
eas-daemon/libeas/eas-sync-msg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/eas-daemon/libeas/eas-sync-msg.c b/eas-daemon/libeas/eas-sync-msg.c
index db569d1..36e4be4 100644
--- a/eas-daemon/libeas/eas-sync-msg.c
+++ b/eas-daemon/libeas/eas-sync-msg.c
@@ -213,7 +213,7 @@ eas_sync_msg_build_message (EasSyncMsg* self, guint filter_type, gboolean getCha
options = xmlNewChild (collection, NULL, (xmlChar *) "Options", NULL);
xmlNewChild (options, NULL, (xmlChar *) "FilterType", (xmlChar*) filter);
xmlNewChild (options, NULL, (xmlChar *) "MIMESupport", (xmlChar*) "2");
- xmlNewChild (options, NULL, (xmlChar *) "MIMETruncation", (xmlChar*) "1"); // First
4KiB
+ xmlNewChild (options, NULL, (xmlChar *) "MIMETruncation", (xmlChar*) "4"); // Fetch
first 10KiB to get all the mail headers
body_pref = xmlNewChild (options, NULL, (xmlChar *) "airsyncbase:BodyPreference",
NULL);
xmlNewChild (body_pref, NULL, (xmlChar *) "airsyncbase:Type", (xmlChar*) "4"); //
Plain text 1, HTML 2, MIME 4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]