[evolution] Use reverse string lookup for domain/username sepration in email
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution] Use reverse string lookup for domain/username sepration in email
- Date: Tue, 14 Jul 2009 16:37:00 +0000 (UTC)
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]