From 10bc63a1741a679a7d65153afccc42d8fe5a5b9a Mon Sep 17 00:00:00 2001 From: Sankar P Date: Wed, 9 Mar 2005 11:58:34 +0000 Subject: [PATCH] Added code to fix the problem of Priority not set in outgoing mails 2005-03-09 Sankar P * camel-groupwise-utils.c:(camel_groupwise_util_item_from_message) Added code to fix the problem of Priority not set in outgoing mails --- camel/providers/groupwise/ChangeLog | 5 +++++ camel/providers/groupwise/camel-groupwise-summary.c | 4 ++-- camel/providers/groupwise/camel-groupwise-utils.c | 16 ++++++++++++++-- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/camel/providers/groupwise/ChangeLog b/camel/providers/groupwise/ChangeLog index 237eef0..426ef09 100644 --- a/camel/providers/groupwise/ChangeLog +++ b/camel/providers/groupwise/ChangeLog @@ -1,3 +1,8 @@ +2005-03-09 Sankar P + + * camel-groupwise-utils.c:(camel_groupwise_util_item_from_message) + Added code to fix the problem of Priority not set in outgoing mails + 2005-03-03 Parthasarathi Susarla * camel-groupwise-store.c: diff --git a/camel/providers/groupwise/camel-groupwise-summary.c b/camel/providers/groupwise/camel-groupwise-summary.c index c7fe37f..9e53e51 100644 --- a/camel/providers/groupwise/camel-groupwise-summary.c +++ b/camel/providers/groupwise/camel-groupwise-summary.c @@ -176,9 +176,9 @@ gw_summary_header_save (CamelFolderSummary *s, FILE *out) return -1; camel_file_util_encode_fixed_int32(out, CAMEL_GW_SUMMARY_VERSION); - camel_file_util_encode_string (out, ims->time_string); + camel_file_util_encode_fixed_int32(out, ims->validity); + return camel_file_util_encode_string (out, ims->time_string); - return camel_file_util_encode_fixed_int32(out, ims->validity); } diff --git a/camel/providers/groupwise/camel-groupwise-utils.c b/camel/providers/groupwise/camel-groupwise-utils.c index a23129a..1f513f7 100644 --- a/camel/providers/groupwise/camel-groupwise-utils.c +++ b/camel/providers/groupwise/camel-groupwise-utils.c @@ -303,7 +303,7 @@ camel_groupwise_util_item_from_message (CamelMimeMessage *message, CamelAddress /*Egroupwise item*/ item = e_gw_item_new_empty () ; - /*poulate recipient list*/ + /*populate recipient list*/ camel_address_remove(recipients,-1); camel_address_cat (recipients, CAMEL_ADDRESS (camel_mime_message_get_recipients (message, CAMEL_RECIPIENT_TYPE_TO))); recipient_list=add_recipients(recipient_list,recipients,E_GW_ITEM_RECIPIENT_TO); @@ -481,7 +481,19 @@ camel_groupwise_util_item_from_message (CamelMimeMessage *message, CamelAddress case 1: e_gw_item_set_notify_declined (item, E_GW_ITEM_NOTIFY_MAIL); } } - + + send_options = (char *)camel_medium_get_header (CAMEL_MEDIUM (message), X_SEND_OPT_PRIORITY); + if (send_options) { + switch (atoi(send_options)) { + case E_GW_PRIORITY_HIGH: e_gw_item_set_priority(item, "High"); + break; + case E_GW_PRIORITY_LOW: e_gw_item_set_priority(item, "Low"); + break; + case E_GW_PRIORITY_STANDARD: e_gw_item_set_priority(item, "Standard"); + break; + } + } + return item; } -- 2.7.4