aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-04-26 23:21:38 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:57 +0800
commiteb53bcf0593cd55a33dc827397274aa862740cfc (patch)
tree00925bd9805dc96dbd1e8a7d8d2c11cfb40ae2fe /plugins
parent4d02935fbb960375d57912bdd6ca20d2ba73b233 (diff)
downloadgsoc2013-evolution-eb53bcf0593cd55a33dc827397274aa862740cfc.tar
gsoc2013-evolution-eb53bcf0593cd55a33dc827397274aa862740cfc.tar.gz
gsoc2013-evolution-eb53bcf0593cd55a33dc827397274aa862740cfc.tar.bz2
gsoc2013-evolution-eb53bcf0593cd55a33dc827397274aa862740cfc.tar.lz
gsoc2013-evolution-eb53bcf0593cd55a33dc827397274aa862740cfc.tar.xz
gsoc2013-evolution-eb53bcf0593cd55a33dc827397274aa862740cfc.tar.zst
gsoc2013-evolution-eb53bcf0593cd55a33dc827397274aa862740cfc.zip
Add itip_address_is_user().
Convenience function that checks whether the given email address matches a registered mail identity.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/groupwise-features/gw-ui.c2
-rw-r--r--plugins/groupwise-features/proxy-login.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/groupwise-features/gw-ui.c b/plugins/groupwise-features/gw-ui.c
index 0d64bd9d3c..08b9382838 100644
--- a/plugins/groupwise-features/gw-ui.c
+++ b/plugins/groupwise-features/gw-ui.c
@@ -321,7 +321,7 @@ is_meeting_owner (ECalComponent *comp, ECal *client)
}
if (!ret_val)
- ret_val = e_account_list_find (e_get_account_list (), E_ACCOUNT_FIND_ID_ADDRESS, strip) != NULL;
+ ret_val = itip_address_is_user (strip);
g_free (email);
return ret_val;
diff --git a/plugins/groupwise-features/proxy-login.c b/plugins/groupwise-features/proxy-login.c
index 2559dc2079..3f80ac9500 100644
--- a/plugins/groupwise-features/proxy-login.c
+++ b/plugins/groupwise-features/proxy-login.c
@@ -42,6 +42,7 @@
#include <e-util/e-util-private.h>
#include <e-util/e-account-utils.h>
#include <shell/e-shell-view.h>
+#include <calendar/gui/itip-utils.h>
#include <e-gw-container.h>
#include <e-gw-connection.h>
@@ -335,7 +336,7 @@ proxy_soap_login (gchar *email, GtkWindow *error_parent)
/* README: There should not be the weird scenario of the proxy itself configured as an account.
If so, it is violating the (li)unix philosophy of User creation. So dont care about that scenario*/
- if (e_account_list_find (accounts, E_ACCOUNT_FIND_ID_ADDRESS, email) != NULL) {
+ if (itip_address_is_user (email)) {
e_alert_run_dialog_for_args (error_parent,
"org.gnome.evolution.proxy-login:already-loggedin",
email, NULL);