Index: plugins/exchange-operations/exchange-account-setup.c =================================================================== RCS file: /cvs/gnome/evolution/plugins/exchange-operations/exchange-account-setup.c,v retrieving revision 1.32 diff -u -p -r1.32 exchange-account-setup.c --- plugins/exchange-operations/exchange-account-setup.c 22 Apr 2006 07:49:03 -0000 1.32 +++ plugins/exchange-operations/exchange-account-setup.c 22 Apr 2006 07:50:25 -0000 @@ -927,6 +927,7 @@ org_gnome_exchange_show_folder_size_fact GtkVBox *vbx; GtkHBox *hbx_size; char *folder_name, *folder_size; + int mode; service = CAMEL_SERVICE (camel_folder_get_parent_store (cml_folder)); if (!service) @@ -938,11 +939,16 @@ org_gnome_exchange_show_folder_size_fact if (g_ascii_strcasecmp (provider->protocol, "exchange")) return NULL; + + account = exchange_operations_get_exchange_account (); + exchange_account_is_offline (account, &mode); + if (mode == OFFLINE_MODE) + return NULL; folder_name = (char*) camel_folder_get_name (cml_folder); if (!folder_name) folder_name = g_strdup ("name"); - account = exchange_operations_get_exchange_account (); + model = exchange_account_folder_size_get_model (account); if (model) folder_size = g_strdup_printf ("%s KB", exchange_folder_size_get_val (model, folder_name));