From bd8d501c35c498b973c45153a24e1a2487c2b71a Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Wed, 29 Dec 1999 22:47:09 +0000 Subject: [PATCH] fix for #21457. if the user has foo@bar.com as there smtp user name (either from migration or from the account wizard) send only foo as the username to the smtp server r=mozilla@bucksch.org --- mailnews/compose/src/nsSmtpServer.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mailnews/compose/src/nsSmtpServer.cpp b/mailnews/compose/src/nsSmtpServer.cpp index 14eec539f421..77fdcd94375c 100644 --- a/mailnews/compose/src/nsSmtpServer.cpp +++ b/mailnews/compose/src/nsSmtpServer.cpp @@ -90,6 +90,16 @@ nsSmtpServer::GetUsername(char * *aUsername) getPrefString("username", pref); rv = prefs->CopyCharPref(pref, aUsername); if (NS_FAILED(rv)) *aUsername = nsnull; + + /* if the user has foo@bar.com as there smtp user name + * (either from migration or from the account wizard) + * send only foo as the username to the smtp server + */ + char *atSignMarker = nsnull; + atSignMarker = PL_strchr(*aUsername, '@'); + if (atSignMarker) { + *atSignMarker = '\0'; + } return NS_OK; }