mime_SACopy(&(aAttach->real_name), "forward.eml");
mime_SACopy(&(aAttach->real_name), "ForwardedMessage.eml");
ValidateRealName(nsMsgAttachmentData *aAttach){   // Sanity.  if (!aAttach)    return;  // Do we need to validate?  if ( (aAttach->real_name) && (*(aAttach->real_name)) )    return;  // Internal MIME structures need not be named!  if ( (!aAttach->real_type) || (aAttach->real_type &&                                  !nsCRT::strncasecmp(aAttach->real_type, "multipart", 9)) )    return;  // Special case...if this is a enclosed RFC822 message, give it a nice  // name.  if (aAttach->real_type && !nsCRT::strcasecmp(aAttach->real_type, MESSAGE_RFC822) &&      (!aAttach->real_name || *aAttach->real_name == 0))  {    mime_SACopy(&(aAttach->real_name), "forward.eml");    return;  }  //   // Now validate any other name we have for the attachment!  //  if (!aAttach->real_name || *aAttach->real_name == 0)  {    nsString  newAttachName = "attach";    nsresult  rv = NS_OK;    NS_WITH_SERVICE(nsIMIMEService, mimeFinder, kMimeServiceCID, &rv);     if (NS_SUCCEEDED(rv) && mimeFinder)     {      nsIMIMEInfo *mimeInfo = nsnull;      rv = mimeFinder->GetFromMIMEType(aAttach->real_type, &mimeInfo);      if (NS_SUCCEEDED(rv) && mimeInfo)       {        char *aFileExtension = nsnull;        if ( (NS_SUCCEEDED(mimeInfo->FirstExtension(&aFileExtension))) && aFileExtension)        {          newAttachName.Append(".");          newAttachName.Append(aFileExtension);          PR_FREEIF(aFileExtension);        }      }            }    aAttach->real_name = newAttachName.ToNewCString();  }  }