[evolution] Use reverse string lookup for domain/username sepration in email



commit 110c6af2eb2d4273a1296af10f7bb8c5c7c57b54
Author: Srinivasa Ragavan <sragavan novell com>
Date:   Tue Jul 14 22:02:05 2009 +0530

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index f2d93a7..c08024e 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]