Mail - stop additional mail in sent folder when merging multiple contacts into email

This commit is contained in:
nathangray 2017-11-14 17:00:17 -07:00
parent 310359ab9f
commit cd661ed3ba

View File

@ -6971,6 +6971,8 @@ class Mail
$_folder = $this->getDraftFolder();
}
if ($sendOK || $openAsDraft)
{
if ($openAsDraft)
{
if($this->folderExists($_folder,true))
{
@ -7007,6 +7009,7 @@ class Mail
$savefailed = true;
$alert_msg .= lang("Saving of message %1 failed. Destination Folder %2 does not exist.",$Subject,$_folder);
}
}
if ($sendOK)
{
$processStats['success'][$val] = 'Send succeeded to '.$nfn.'<'.$email.'>'.($savefailed?' but failed to store to Folder:'.$_folder:'');