[evolution-mapi/gnome-2-28] Bug #573736 - Expunge Folder in MAPI INBOX deletes all email messages
- From: Akhil Laddha <lakhil src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-mapi/gnome-2-28] Bug #573736 - Expunge Folder in MAPI INBOX deletes all email messages
- Date: Thu, 26 Nov 2009 07:41:07 +0000 (UTC)
commit af9f570780e5af263e04722fa706526df96e8ea8
Author: Johnny Jacob <jjohnny novell com>
Date: Thu Nov 26 13:09:24 2009 +0530
Bug #573736 - Expunge Folder in MAPI INBOX deletes all email messages
src/camel/camel-mapi-folder.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/camel/camel-mapi-folder.c b/src/camel/camel-mapi-folder.c
index a48a90e..ddc7725 100644
--- a/src/camel/camel-mapi-folder.c
+++ b/src/camel/camel-mapi-folder.c
@@ -887,7 +887,7 @@ mapi_sync (CamelFolder *folder, gboolean expunge, CamelException *ex)
/* Remove messages from server*/
if (deleted_items) {
CAMEL_SERVICE_REC_LOCK (mapi_store, connect_lock);
- if (mapi_folder->type & CAMEL_FOLDER_TYPE_TRASH) {
+ if ((mapi_folder->type & CAMEL_FOLDER_TYPE_MASK) == CAMEL_FOLDER_TYPE_TRASH) {
exchange_mapi_remove_items (0, fid, deleted_items);
} else {
exchange_mapi_util_mapi_id_from_string (camel_mapi_store_system_folder_fid (mapi_store, olFolderDeletedItems), &deleted_items_fid);
@@ -1810,7 +1810,7 @@ mapi_expunge (CamelFolder *folder, CamelException *ex)
folder_id = g_strdup (camel_mapi_store_folder_id_lookup (mapi_store, folder->full_name)) ;
exchange_mapi_util_mapi_id_from_string (folder_id, &fid);
- if (mapi_folder->type & CAMEL_FOLDER_TYPE_TRASH) {
+ if ((mapi_folder->type & CAMEL_FOLDER_TYPE_MASK) == CAMEL_FOLDER_TYPE_TRASH) {
CAMEL_SERVICE_REC_LOCK (mapi_store, connect_lock);
status = exchange_mapi_empty_folder (fid);
CAMEL_SERVICE_REC_UNLOCK (mapi_store, connect_lock);
@@ -1979,8 +1979,8 @@ mapi_append_message (CamelFolder *folder, CamelMimeMessage *message,
si = camel_store_summary_path ((CamelStoreSummary *)mapi_store->summary,
folder->full_name);
- if (si->flags & CAMEL_FOLDER_TYPE_TRASH ||
- si->flags & CAMEL_FOLDER_TYPE_OUTBOX) {
+ if (((si->flags & CAMEL_FOLDER_TYPE_MASK) == CAMEL_FOLDER_TYPE_TRASH) ||
+ ((si->flags & CAMEL_FOLDER_TYPE_MASK) == CAMEL_FOLDER_TYPE_OUTBOX)) {
camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
_("Cannot append message to folder '%s'"),
folder->full_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]