FILE_PATH_SEPARATOR FILE_ILLEGAL_CHARACTERS);
FILE_PATH_SEPARATOR FILE_ILLEGAL_CHARACTERS ILLEGAL_FOLDER_CHARS);
nsresult NS_MsgHashIfNecessary(nsAutoString &name){  PRInt32 illegalCharacterIndex = name.FindCharInSet(                                  FILE_PATH_SEPARATOR FILE_ILLEGAL_CHARACTERS);  char hashedname[9];  if (illegalCharacterIndex == kNotFound)   {    if (name.Length() > MAX_LEN)     {      PR_snprintf(hashedname, 9, "%08lx", (unsigned long) StringHash(name));      name.Truncate(MAX_LEN - 8);       AppendASCIItoUTF16(hashedname, name);    }  }  else   {      PR_snprintf(hashedname, 9, "%08lx",                (unsigned long) StringHash(name));      CopyASCIItoUTF16(hashedname, name);  }    return NS_OK;}