From 110c6af2eb2d4273a1296af10f7bb8c5c7c57b54 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Tue, 14 Jul 2009 22:02:05 +0530 Subject: Use reverse string lookup for domain/username sepration in email breakdown. Gmail domain users have email as username. --- 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 f2d93a7363..c08024e36d 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -2783,7 +2783,7 @@ emae_check_complete (EConfig *ec, const gchar *pageid, gpointer data) emae->priv->receive_set = 1; tmp = (gchar *)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