From c6f885efd9b5c58efd030a6052c235deb21880fa Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Tue, 14 Jul 2009 22:05:30 +0530 Subject: Use reverse str lookup for email separation. --- mail/em-account-editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3