[evolution] Use reverse str lookup for email separation.



commit c6f885efd9b5c58efd030a6052c235deb21880fa
Author: Srinivasa Ragavan <sragavan novell com>
Date:   Tue Jul 14 22:05:30 2009 +0530

    Use reverse str lookup for email separation.

 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 c08024e..86640ab 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;



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