From 7b3f66098f65545d80276b7b98dd25856fa362fe Mon Sep 17 00:00:00 2001 From: Sankar P Date: Wed, 28 Sep 2005 08:20:41 +0000 Subject: Added code to handle the extra blank email that will be returned from the 2005-09-28 Sankar P * proxy.c (proxy_dialog_store_widgets_data): Added code to handle the extra blank email that will be returned from the ENameSelector, while auto-completion. Fixes #317400 svn path=/trunk/; revision=30384 --- plugins/groupwise-features/ChangeLog | 7 +++++++ plugins/groupwise-features/proxy.c | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/groupwise-features/ChangeLog b/plugins/groupwise-features/ChangeLog index 3e60bc74e3..da6d28bd9a 100644 --- a/plugins/groupwise-features/ChangeLog +++ b/plugins/groupwise-features/ChangeLog @@ -1,3 +1,10 @@ +2005-09-28 Sankar P + + * proxy.c (proxy_dialog_store_widgets_data): + Added code to handle the extra blank email that will be returned + from the ENameSelector, while auto-completion. + Fixes #317400 + 2005-09-27 Vivek Jain * install-shared.c: (accept_clicked): diff --git a/plugins/groupwise-features/proxy.c b/plugins/groupwise-features/proxy.c index 6e14c6ab98..e3d68ab608 100644 --- a/plugins/groupwise-features/proxy.c +++ b/plugins/groupwise-features/proxy.c @@ -347,7 +347,10 @@ proxy_dialog_store_widgets_data (EAccount *account, gint32 dialog) email = NULL; email = (char *)e_destination_get_email (tmp->data); - if (g_strrstr (email, "@") == NULL ) { + if (g_str_equal(email, "")) + continue; + + if (g_strrstr (email, "@") == NULL) { e_error_run (NULL, "org.gnome.evolution.proxy:invalid-user", email, NULL); return -1; } @@ -382,6 +385,10 @@ proxy_dialog_store_widgets_data (EAccount *account, gint32 dialog) for (; tmp != NULL; tmp = g_list_next (tmp)) { name = NULL; email = NULL; email = (char *) e_destination_get_email (tmp->data); + + if (g_str_equal(email, "")) + continue; + name = (char *) e_destination_get_name (tmp->data); new_proxy = (proxyHandler *) g_malloc (sizeof (proxyHandler)); -- cgit