28 lines
980 B
Diff
28 lines
980 B
Diff
--- camel/providers/groupwise/camel-groupwise-folder.c
|
|
+++ camel/providers/groupwise/camel-groupwise-folder.c
|
|
@@ -212,12 +212,24 @@ groupwise_folder_get_message( CamelFolder *folder, const char *uid, CamelExcepti
|
|
static void
|
|
groupwise_populate_details_from_item (CamelMimeMessage *msg, EGwItem *item)
|
|
{
|
|
+ EGwItemType type;
|
|
char *dtstring = NULL;
|
|
char *temp_str = NULL;
|
|
|
|
temp_str = (char *)e_gw_item_get_subject(item);
|
|
if(temp_str)
|
|
camel_mime_message_set_subject (msg, temp_str);
|
|
+ type = e_gw_item_get_item_type (item);
|
|
+
|
|
+ if (type == E_GW_ITEM_TYPE_APPOINTMENT || type == E_GW_ITEM_TYPE_NOTE) {
|
|
+ int offset = 0;
|
|
+ dtstring = e_gw_item_get_start_date (item);
|
|
+ time_t time = e_gw_connection_get_date_from_string (dtstring);
|
|
+ time_t actual_time = camel_header_decode_date (ctime(&time), &offset);
|
|
+ camel_mime_message_set_date (msg, actual_time, offset);
|
|
+ return;
|
|
+ }
|
|
+
|
|
dtstring = e_gw_item_get_delivered_date (item);
|
|
if(dtstring) {
|
|
int offset = 0;
|