diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-04-26 23:21:38 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-04-26 23:21:38 +0800 |
commit | 2594b0d00cff45936250e9294ce6eb7cacd87c25 (patch) | |
tree | a8baa0ca4b27c773bcd0937fb4ef623005e03f00 /plugins/groupwise-features/proxy-login.c | |
parent | c67695c6f2d5ea5450d90dbf0ecb5590744ec15a (diff) | |
download | gsoc2013-evolution-2594b0d00cff45936250e9294ce6eb7cacd87c25.tar gsoc2013-evolution-2594b0d00cff45936250e9294ce6eb7cacd87c25.tar.gz gsoc2013-evolution-2594b0d00cff45936250e9294ce6eb7cacd87c25.tar.bz2 gsoc2013-evolution-2594b0d00cff45936250e9294ce6eb7cacd87c25.tar.lz gsoc2013-evolution-2594b0d00cff45936250e9294ce6eb7cacd87c25.tar.xz gsoc2013-evolution-2594b0d00cff45936250e9294ce6eb7cacd87c25.tar.zst gsoc2013-evolution-2594b0d00cff45936250e9294ce6eb7cacd87c25.zip |
Add itip_address_is_user().
Convenience function that checks whether the given email address matches
a registered mail identity.
Diffstat (limited to 'plugins/groupwise-features/proxy-login.c')
-rw-r--r-- | plugins/groupwise-features/proxy-login.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |