aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/em-account-editor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index c08024e36d..86640aba52 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -2825,7 +2825,7 @@ emae_check_complete (EConfig *ec, const gchar *pageid, gpointer data)
gchar *uri = (gchar *)e_account_get_string (emae->account, E_ACCOUNT_TRANSPORT_URL);
emae->priv->send_set = 1;
tmp = e_account_get_string (emae->account, E_ACCOUNT_ID_ADDRESS);
- at = strchr (tmp, '@');
+ at = strrchr (tmp, '@');
user = g_alloca (at-tmp+1);
memcpy (user, tmp, at-tmp);
user[at-tmp] = 0;