diff options
-rw-r--r-- | plugins/exchange-operations/ChangeLog | 7 | ||||
-rw-r--r-- | plugins/exchange-operations/exchange-account-setup.c | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/plugins/exchange-operations/ChangeLog b/plugins/exchange-operations/ChangeLog index dad4cdbb93..3e14ffe294 100644 --- a/plugins/exchange-operations/ChangeLog +++ b/plugins/exchange-operations/ChangeLog @@ -1,3 +1,10 @@ +2005-11-24 Sushma Rai <rsushma@novell.com> + + * exchange-account-setup.c (org_gnome_exchange_settings): Initialize + OOF state and check for the OOF state and message only of the account + is valid. Fixes the problem of printing OOF error message in case + of authentication failure. + 2005-10-03 Shakti Sen <shprasad@novell.com> * exchange-folder-permission.c (org_gnome_exchange_folder_permissions), diff --git a/plugins/exchange-operations/exchange-account-setup.c b/plugins/exchange-operations/exchange-account-setup.c index 4b291f73c7..a705671fe2 100644 --- a/plugins/exchange-operations/exchange-account-setup.c +++ b/plugins/exchange-operations/exchange-account-setup.c @@ -174,7 +174,7 @@ org_gnome_exchange_settings(EPlugin *epl, EConfigHookItemFactoryData *data) CamelURL *url; const char *source_url; char *message = NULL, *txt = NULL, *oof_message; - gboolean oof_state; + gboolean oof_state = FALSE; GtkVBox *vbox_settings; @@ -232,7 +232,7 @@ org_gnome_exchange_settings(EPlugin *epl, EConfigHookItemFactoryData *data) /* See if oof info found already */ - if (!exchange_oof_get (account, &oof_state, &message)) { + if (account && !exchange_oof_get (account, &oof_state, &message)) { e_error_run (NULL, ERROR_DOMAIN ":state-read-error", NULL); |