Index: ./mail/mail-stub-exchange.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/mail/mail-stub-exchange.c,v
retrieving revision 1.39
diff -u -r1.39 mail-stub-exchange.c
--- ./mail/mail-stub-exchange.c	10 May 2006 09:13:41 -0000	1.39
+++ ./mail/mail-stub-exchange.c	28 Jun 2006 04:04:39 -0000
@@ -573,6 +573,7 @@
 					     open_folder_props,
 					     n_open_folder_props,
 					     &results, &nresults);
+
 	if (status == E2K_HTTP_UNAUTHORIZED) {
 		if (!background) {
 			got_folder_error (mfld, _("Could not open folder: Permission denied"));
@@ -580,7 +581,7 @@
 		return FALSE;
 	} else if (!E2K_HTTP_STATUS_IS_SUCCESSFUL (status)) {
 		g_warning ("got_folder_props: %d", status);
-		if (!background) {
+		if (!background){
 			got_folder_error (mfld, _("Could not open folder"));
 		}
 		return FALSE;
@@ -751,7 +752,7 @@
 
 	path = g_strdup_printf ("/%s", name);
 	folder = exchange_account_get_folder (mse->account, path);
-	if (!folder && !create) {
+	if (!folder && !create && g_strrstr(path, "favorites") == NULL) {
 		mail_stub_return_error (stub, _("No such folder"));
 		g_free (path);
 		return;
@@ -760,10 +761,12 @@
 
 		result = exchange_account_create_folder (mse->account, path, "mail");
 		folder = exchange_account_get_folder (mse->account, path);
-		if (result != EXCHANGE_ACCOUNT_FOLDER_OK || !folder) {
-			mail_stub_return_error (stub, _("Could not create folder."));
-			g_free (path);
-			return;
+		if ( g_strrstr(path, "favorites") == NULL) {
+			if (result != EXCHANGE_ACCOUNT_FOLDER_OK || !folder) {
+				mail_stub_return_error (stub, _("Could not create folder."));
+				g_free (path);
+				return;
+			}
 		}
 	}
 	g_free (path);
@@ -773,7 +776,8 @@
 	mfld->folder = folder;
 	g_object_ref (folder);
 	mfld->name = e_folder_exchange_get_path (folder) + 1;
-
+	
+	if (folder){
 	if (!strcmp (e_folder_get_type_string (folder), "mail/public"))
 		mfld->type = MAIL_STUB_EXCHANGE_FOLDER_POST;
 	else {
@@ -789,6 +793,7 @@
 		else
 			mfld->type = MAIL_STUB_EXCHANGE_FOLDER_OTHER;
 	}
+	}
 
 	mfld->messages = g_ptr_array_new ();
 	mfld->messages_by_uid = g_hash_table_new (g_str_hash, g_str_equal);
@@ -2545,7 +2550,7 @@
 
 	path = g_build_filename ("/", folder_name, NULL);
 	folder = exchange_account_get_folder (mse->account, path);
-	if (!folder) {
+	if (!folder && g_strrstr(path, "favorites") == NULL) {
 		mail_stub_return_error (stub, _("Folder doesn't exist"));
 		g_free (path);
 		return;
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-exchange/ChangeLog,v
retrieving revision 1.516
diff -u -r1.516 ChangeLog
--- ChangeLog	22 Jun 2006 06:47:28 -0000	1.516
+++ ChangeLog	28 Jun 2006 04:07:48 -0000
@@ -1,3 +1,9 @@
+2006-06-28  Vandana Shenoy .B. <shvandana@novell.com>
+
+	* mail/mail-stub-exchange.c:
+	Fixes #311453 : Wrong error message while deleting favorite public
+	mail folder
+
 2006-06-22  simon.zheng  <simon.zheng@sun.com>
 
         Fix for #336453
