if (PL_strcmp("mailbox", (const char *)scheme) == 0) { *aResult = PR_TRUE; } else { *aResult = PR_FALSE; }
MessageFolderIsLocal(nsIMsgIdentity   *userIdentity,                      nsMsgDeliverMode aFolderType,                     const char       *aFolderURI,		     PRBool 	      *aResult){  nsresult rv;  nsXPIDLCString scheme;  if (!aFolderURI) return NS_ERROR_NULL_POINTER;  nsCOMPtr <nsIURL> url;  rv = nsComponentManager::CreateInstance(kStandardUrlCID, nsnull, NS_GET_IID(nsIURL), getter_AddRefs(url));  if (NS_FAILED(rv)) return rv;  rv = url->SetSpec(aFolderURI);  if (NS_FAILED(rv)) return rv;   rv = url->GetScheme(getter_Copies(scheme));  if (NS_FAILED(rv)) return rv;  /* mailbox:/ means its local (on disk) */  if (PL_strcmp("mailbox", (const char *)scheme) == 0) {	*aResult = PR_TRUE;  }  else {	*aResult = PR_FALSE;  }  return NS_OK;}