Index: exchange-folder-subscription.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/exchange-operations/exchange-folder-subscription.c,v
retrieving revision 1.9
diff -u -p -r1.9 exchange-folder-subscription.c
--- exchange-folder-subscription.c	7 Jun 2006 07:04:44 -0000	1.9
+++ exchange-folder-subscription.c	21 Jul 2006 05:47:30 -0000
@@ -194,6 +194,7 @@ subscribe_to_folder (GtkWidget *dialog, 
 	GList *destinations;
 	EDestination *destination;
 	ExchangeAccountFolderResult result;
+	char* subscriber_email;  /* The email adddress of the subscriber */
 	
 	if (response == GTK_RESPONSE_CANCEL) {
 		gtk_widget_destroy (dialog);
@@ -209,6 +210,16 @@ subscribe_to_folder (GtkWidget *dialog, 
 			destination = destinations->data;
 			user_email_address = g_strdup (e_destination_get_email (destination));
 			g_list_free (destinations);
+
+			subscriber_email = exchange_account_get_email (subscription_info->account);
+			if (subscriber_email && user_email_address && 
+				(g_str_equal (subscriber_email, user_email_address) == TRUE) ){
+					e_error_run (NULL, ERROR_DOMAIN ":folder-exists-error", NULL);
+                			g_free (user_email_address);
+                			gtk_widget_destroy (dialog);
+                			destroy_subscription_info (subscription_info);
+                                        return;
+			}
 
 			if (user_email_address != NULL && *user_email_address != '\0')
 				break;
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/exchange-operations/ChangeLog,v
retrieving revision 1.119
diff -u -p -r1.119 ChangeLog
--- ChangeLog	18 Jul 2006 22:32:55 -0000	1.119
+++ ChangeLog	21 Jul 2006 05:50:56 -0000
@@ -1,3 +1,8 @@
+2006-07-21 Vandana Shenoy .B  <shvandana@novell.com>
+
+	** Fixes bug #311322
+	* exchange-folder-subscription.c (subscribe_to_folder): Added a condition to check if a user is subscribing to his own folder
+
 2006-07-18  Andre Klapper  <a9016009@gmx.de>
 
 	* exchange-change-password.glade:
