aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exchange-operations/exchange-config-listener.c
diff options
context:
space:
mode:
authorArunprakash <arunp@novell.com>2005-08-25 23:27:51 +0800
committerArunprakash S <arunp@src.gnome.org>2005-08-25 23:27:51 +0800
commitf7780399f460eb357653f02a243c7347d40bc35e (patch)
tree622a30bf28e0b505283706fe8404914e4f6adf3b /plugins/exchange-operations/exchange-config-listener.c
parent3f9c05b3ad0da596400e88558c86edeefa593f58 (diff)
downloadgsoc2013-evolution-f7780399f460eb357653f02a243c7347d40bc35e.tar
gsoc2013-evolution-f7780399f460eb357653f02a243c7347d40bc35e.tar.gz
gsoc2013-evolution-f7780399f460eb357653f02a243c7347d40bc35e.tar.bz2
gsoc2013-evolution-f7780399f460eb357653f02a243c7347d40bc35e.tar.lz
gsoc2013-evolution-f7780399f460eb357653f02a243c7347d40bc35e.tar.xz
gsoc2013-evolution-f7780399f460eb357653f02a243c7347d40bc35e.tar.zst
gsoc2013-evolution-f7780399f460eb357653f02a243c7347d40bc35e.zip
Need to set the account's linestatus to online as there is no way to get
2005-08-25 Arunprakash <arunp@novell.com> * exchange-config-listener.c (account_added) : Need to set the account's linestatus to online as there is no way to get the linestatus in plugin. Also moved the authentication code to exchange_operations_get_exchange_account as it is not needed here. * exchange-operations.c (exchange_operations_get_exchange_account) : Updated to return the account in offline mode. svn path=/trunk/; revision=30251
Diffstat (limited to 'plugins/exchange-operations/exchange-config-listener.c')
-rw-r--r--plugins/exchange-operations/exchange-config-listener.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/exchange-operations/exchange-config-listener.c b/plugins/exchange-operations/exchange-config-listener.c
index 6d234a6e8b..2165bd7899 100644
--- a/plugins/exchange-operations/exchange-config-listener.c
+++ b/plugins/exchange-operations/exchange-config-listener.c
@@ -611,7 +611,6 @@ account_added (EAccountList *account_list, EAccount *account)
{
ExchangeConfigListener *config_listener;
ExchangeAccount *exchange_account;
- ExchangeAccountResult result;
gint is_offline;
if (!is_active_exchange_account (account))
@@ -652,14 +651,14 @@ account_added (EAccountList *account_list, EAccount *account)
/* add_sources (exchange_account); */
exchange_config_listener_get_offline_status (config_listener, &is_offline);
+
if (is_offline == OFFLINE_MODE) {
remove_selected_non_offline_esources (exchange_account, CONF_KEY_CAL);
remove_selected_non_offline_esources (exchange_account, CONF_KEY_TASKS);
+ return;
}
- result = exchange_config_listener_authenticate (config_listener, exchange_account);
- if (result != EXCHANGE_ACCOUNT_CONNECT_SUCCESS)
- exchange_operations_report_error (exchange_account, result);
+ exchange_account_set_online (exchange_account);
}
struct account_update_data {