From 3eb87547c71421aa83ec57443d94c11dcd7f6c8f Mon Sep 17 00:00:00 2001 From: Sankar P Date: Sat, 6 Aug 2005 09:54:05 +0000 Subject: Disabling giving proxy rights to self. Fixes #312365 2005-08-06 Sankar P * proxy.c: (proxy_dialog_store_widgets_data) Disabling giving proxy rights to self. Fixes #312365 svn path=/trunk/; revision=30014 --- plugins/groupwise-features/ChangeLog | 6 ++++++ plugins/groupwise-features/proxy.c | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/groupwise-features/ChangeLog b/plugins/groupwise-features/ChangeLog index d633e1083e..2a964f52fe 100644 --- a/plugins/groupwise-features/ChangeLog +++ b/plugins/groupwise-features/ChangeLog @@ -1,3 +1,9 @@ +2005-08-06 Sankar P + + * proxy.c: (proxy_dialog_store_widgets_data) + Disabling giving proxy rights to self. + Fixes #312365 + 2005-07-29 Vivek Jain * status-track.c: (track_status): diff --git a/plugins/groupwise-features/proxy.c b/plugins/groupwise-features/proxy.c index 9b32c2aa4b..28506d73a9 100644 --- a/plugins/groupwise-features/proxy.c +++ b/plugins/groupwise-features/proxy.c @@ -336,15 +336,19 @@ proxy_dialog_store_widgets_data (EAccount *account, gint32 dialog) e_error_run (NULL, "org.gnome.evolution.proxy:no-user",NULL ,NULL); return -1; } - + for (; tmp != NULL; tmp = g_list_next (tmp)) { email = NULL; email = (char *)e_destination_get_email (tmp->data); if (g_strrstr (email, "@") == NULL ) { - e_error_run (NULL, "org.gnome.evolution.proxy:invalid-user",email ,NULL); + e_error_run (NULL, "org.gnome.evolution.proxy:invalid-user", email, NULL); return -1; } + if (! g_ascii_strcasecmp(e_gw_connection_get_user_email (prd->cnc), email)) { + e_error_run (NULL, "org.gnome.evolution.proxy:invalid-user", email, NULL); + return -1; + } /*check whether already exists*/ existing_list = g_object_get_data ( (GObject*)account, "proxy_list"); -- cgit