Added code to fix the problem of Priority not set in outgoing mails
authorSankar P <psankar@novell.com>
Wed, 9 Mar 2005 11:58:34 +0000 (11:58 +0000)
committerParthasarathi Susarla <saps@src.gnome.org>
Wed, 9 Mar 2005 11:58:34 +0000 (11:58 +0000)
2005-03-09  Sankar P <psankar@novell.com>

* 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
camel/providers/groupwise/camel-groupwise-summary.c
camel/providers/groupwise/camel-groupwise-utils.c

index 237eef0..426ef09 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-09  Sankar P <psankar@novell.com>
+
+       * 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 <sparthasarathi@novell.com>
        
        * camel-groupwise-store.c:
index c7fe37f..9e53e51 100644 (file)
@@ -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);
 
 }
 
index a23129a..1f513f7 100644 (file)
@@ -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;
 }