+2009-04-13 Chenthill Palanisamy <pchenthill@novell.com>
+
+ Fixes #471083 (bnc)
+ * camel/providers/groupwise/camel-groupwise-store.c: Sets the
+ System folder flag for system folders.
+
2009-03-19 Chenthill Palanisamy <pchenthill@novell.com>
Fixes #477697
fi->flags |= CAMEL_FOLDER_TYPE_TRASH;
else if (!strcmp (folder_name, "Junk Mail"))
fi->flags |= CAMEL_FOLDER_TYPE_JUNK;
-
+
+ if (groupwise_is_system_folder (folder_name))
+ fi->flags |= CAMEL_FOLDER_SYSTEM;
+
+
fi->name = g_strdup(name);
return fi;
}
CAMEL_SERVICE_REC_LOCK (store, connect_lock);
+ if (groupwise_is_system_folder (folder_name)) {
+ camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, _("Cannot delete GroupWise system folder '%s'"),
+ folder_name);
+ return;
+ }
+
if (!camel_groupwise_store_connected (groupwise_store, ex)) {
CAMEL_SERVICE_REC_UNLOCK (store, connect_lock);
return;