[evolution-mapi] Misplaced PidTagImportance with PidTagPriority
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Misplaced PidTagImportance with PidTagPriority
- Date: Thu, 26 Jan 2012 15:54:36 +0000 (UTC)
commit e19b25ccb7783a5348699ad1eb68064f736a1a65
Author: Milan Crha <mcrha redhat com>
Date: Thu Jan 26 16:54:00 2012 +0100
Misplaced PidTagImportance with PidTagPriority
src/libexchangemapi/e-mapi-mail-utils.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libexchangemapi/e-mapi-mail-utils.c b/src/libexchangemapi/e-mapi-mail-utils.c
index 0d3d7a9..ba2ec83 100644
--- a/src/libexchangemapi/e-mapi-mail-utils.c
+++ b/src/libexchangemapi/e-mapi-mail-utils.c
@@ -795,8 +795,8 @@ e_mapi_mail_utils_object_to_message (EMapiConnection *conn, /* const */ EMapiObj
if (str)
camel_medium_add_header (CAMEL_MEDIUM (msg), "In-Reply-To", str);
- priority = e_mapi_util_find_array_propval (&object->properties, PidTagImportance);
- if (priority && *priority > 1)
+ priority = e_mapi_util_find_array_propval (&object->properties, PidTagPriority);
+ if (priority && *priority == 1)
camel_medium_add_header (CAMEL_MEDIUM (msg), "X-Priority", "1");
/* Read-Receipt handling */
@@ -1533,8 +1533,8 @@ e_mapi_mail_utils_message_to_object (struct _CamelMimeMessage *message,
str = camel_medium_get_header ((CamelMedium *) message, "X-Priority");
if (str && g_str_equal (str, "1")) {
- ui32 = 2;
- set_value (PidTagImportance, &ui32);
+ ui32 = 1;
+ set_value (PidTagPriority, &ui32);
}
str = camel_medium_get_header ((CamelMedium *) message, "Disposition-Notification-To");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]