Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-exchange/ChangeLog,v
retrieving revision 1.396
diff -u -p -r1.396 ChangeLog
--- ChangeLog	8 Sep 2005 11:08:43 -0000	1.396
+++ ChangeLog	12 Sep 2005 11:20:32 -0000
@@ -1,3 +1,17 @@
+2005-09-12  Arunprakash  <arunp@novell.com>
+
+	* camel/camel-exchange-folder.c (exchange_expunge) : Checks for
+	offline mode and returns an error.
+	** Fixes #272987.
+
 2005-09-08  Arunprakash  <arunp@novell.com>
 
 	* camel/camel-exchange-store.c (exchange_get_folder) : Reverted the
Index: camel/camel-exchange-folder.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/camel/camel-exchange-folder.c,v
retrieving revision 1.19
diff -u -p -r1.19 camel-exchange-folder.c
--- camel/camel-exchange-folder.c	19 Aug 2005 15:36:28 -0000	1.19
+++ camel/camel-exchange-folder.c	12 Sep 2005 11:20:32 -0000
@@ -214,6 +214,13 @@ exchange_expunge (CamelFolder *folder, C
 	CamelExchangeFolder *exch = CAMEL_EXCHANGE_FOLDER (folder);
 	CamelFolder *trash;
 	GPtrArray *uids;
+	CamelExchangeStore *store = CAMEL_EXCHANGE_STORE (folder->parent_store);
+
+	if (!camel_exchange_store_connected (store, ex)) {
+		camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE,
+				     _("You cannot expunge in offline mode."));
+		return;
+	}
 
 	trash = camel_store_get_trash (folder->parent_store, NULL);
 	if (trash)
