nsImapURI2FullName(const char* rootURI, const char* hostname, char* uriStr,
nsImapURI2FullName(const char* rootURI, const char* hostname, const char* uriStr,
nsImapURI2FullName(const char* rootURI, const char* hostname, char* uriStr,                   char **name){    nsAutoString uri; uri.AssignWithConversion(uriStr);    nsAutoString fullName;    if (uri.Find(rootURI) != 0) return NS_ERROR_FAILURE;    PRInt32 hostStart = uri.Find(hostname);    if (hostStart <= 0) return NS_ERROR_FAILURE;    uri.Right(fullName, uri.Length() - hostStart);    uri = fullName;    PRInt32 hostEnd = uri.FindChar('/');    if (hostEnd <= 0) return NS_ERROR_FAILURE;    uri.Right(fullName, uri.Length() - hostEnd - 1);    if (fullName.IsEmpty()) return NS_ERROR_FAILURE;    *name = fullName.ToNewCString();    return NS_OK;}