summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSankar P <psankar@novell.com>2006-11-08 14:53:36 +0000
committerSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>2006-11-08 14:53:36 +0000
commitc90ee6a65bf3011aab54e4759b27c5daaeabfe9a (patch)
tree11e536cf824d289182251cac58634609d3dabf33
parent31fe3e69f6a92486c5aee8facc82c0b993a9d5e3 (diff)
downloadevolution-data-server-c90ee6a65bf3011aab54e4759b27c5daaeabfe9a.tar.gz
Added support for CAMEL_MESSAGE_HIDDEN and
2006-11-08 Sankar P <psankar@novell.com> * camel-folder-summary.h: Added support for CAMEL_MESSAGE_HIDDEN and CAMEL_MESSAGE_USER_NOT_DELETABLE flags which can be used in mailer and for proxy rights management.
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-folder-summary.h2
-rw-r--r--camel/providers/groupwise/ChangeLog5
-rw-r--r--camel/providers/groupwise/camel-groupwise-folder.c9
4 files changed, 22 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index ba08c83e5..209dbc857 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2006-11-08 Sankar P <psankar@novell.com>
+
+ * camel-folder-summary.h: Added support for CAMEL_MESSAGE_HIDDEN and
+ CAMEL_MESSAGE_USER_NOT_DELETABLE flags which can be used in mailer
+ and for proxy rights management.
+
2006-11-06 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bug #330157
diff --git a/camel/camel-folder-summary.h b/camel/camel-folder-summary.h
index e2da698a4..658bd0a0d 100644
--- a/camel/camel-folder-summary.h
+++ b/camel/camel-folder-summary.h
@@ -76,6 +76,8 @@ typedef enum _CamelMessageFlags {
CAMEL_MESSAGE_ANSWERED_ALL = 1<<6,
CAMEL_MESSAGE_JUNK = 1<<7,
CAMEL_MESSAGE_SECURE = 1<<8,
+ CAMEL_MESSAGE_USER_NOT_DELETABLE = 1<<9,
+ CAMEL_MESSAGE_HIDDEN = 1<<10,
/* following flags are for the folder, and are not really permanent flags */
CAMEL_MESSAGE_FOLDER_FLAGGED = 1<<16, /* for use by the folder implementation */
diff --git a/camel/providers/groupwise/ChangeLog b/camel/providers/groupwise/ChangeLog
index 5b2d9710b..0c3ce8cf7 100644
--- a/camel/providers/groupwise/ChangeLog
+++ b/camel/providers/groupwise/ChangeLog
@@ -1,5 +1,10 @@
2006-11-08 Sankar P <psankar@novell.com>
+ * camel-groupwise-folder.c: (gw_update_cache), (gw_update_summary):
+ Set CAMEL_MESSAGE_USER_NOT_DELETABLE flag if proxy has no delete permission
+
+2006-11-08 Sankar P <psankar@novell.com>
+
* camel-groupwise-folder.c: (groupwise_folder_item_to_msg):
Fixes the problem of attachments getting corrupt in SOAP mailer
Fixes some problems with Mime.822
diff --git a/camel/providers/groupwise/camel-groupwise-folder.c b/camel/providers/groupwise/camel-groupwise-folder.c
index e115597d6..0fe7a5e29 100644
--- a/camel/providers/groupwise/camel-groupwise-folder.c
+++ b/camel/providers/groupwise/camel-groupwise-folder.c
@@ -1149,6 +1149,8 @@ gw_update_cache (CamelFolder *folder, GList *list, CamelException *ex, gboolean
GList *item_list = list;
int total_items = g_list_length (item_list), i=0;
+ gboolean is_proxy = folder->parent_store->flags & CAMEL_STORE_WRITE;
+
CAMEL_SERVICE_ASSERT_LOCKED (gw_store, connect_lock);
changes = camel_folder_change_info_new ();
@@ -1244,6 +1246,8 @@ gw_update_cache (CamelFolder *folder, GList *list, CamelException *ex, gboolean
if (e_gw_item_has_attachment (item))
mi->info.flags |= CAMEL_MESSAGE_ATTACHMENTS;
+ if (is_proxy)
+ mi->info.flags |= CAMEL_MESSAGE_USER_NOT_DELETABLE;
org = e_gw_item_get_organizer (item);
if (org) {
@@ -1379,6 +1383,8 @@ gw_update_summary ( CamelFolder *folder, GList *list,CamelException *ex)
gboolean is_junk = FALSE;
GList *item_list = list;
+ gboolean is_proxy = folder->parent_store->flags & CAMEL_STORE_WRITE;
+
/*Assert lock???*/
changes = camel_folder_change_info_new ();
container_id = g_strdup (camel_groupwise_store_container_id_lookup (gw_store, folder->full_name));
@@ -1445,6 +1451,9 @@ gw_update_summary ( CamelFolder *folder, GList *list,CamelException *ex)
if (e_gw_item_has_attachment (item))
mi->info.flags |= CAMEL_MESSAGE_ATTACHMENTS;
+ if (is_proxy)
+ mi->info.flags |= CAMEL_MESSAGE_USER_NOT_DELETABLE;
+
org = e_gw_item_get_organizer (item);
if (org) {
GString *str;