Bug 95295 If imap server is named "imap" you can't emtpy your trash.

patch by jk@tools.de r=morten@nilsen.com sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@123916 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mac.com
2002-06-24 04:31:41 +00:00
parent 403f29b5fd
commit 7fb41ca544

View File

@@ -180,6 +180,8 @@ nsImapURI2FullName(const char* rootURI, const char* hostname, const char* uriStr
nsAutoString uri; uri.AssignWithConversion(uriStr);
nsAutoString fullName;
if (uri.Find(rootURI) != 0) return NS_ERROR_FAILURE;
uri.Right(fullName, uri.Length() - strlen(rootURI));
uri = fullName;
PRInt32 hostStart = uri.Find(hostname);
if (hostStart <= 0) return NS_ERROR_FAILURE;
uri.Right(fullName, uri.Length() - hostStart);