mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-02 02:18:49 +03:00
Interface optimization
Mark as important (compose)
This commit is contained in:
parent
821991a263
commit
d5eacb6a4d
43 changed files with 1069 additions and 780 deletions
|
|
@ -2751,12 +2751,12 @@ class Actions
|
|||
*/
|
||||
public function licenseHelper($sForce = false, $bLongCache = false, $iFastCacheTimeInMin = 10, $iLongCacheTimeInDays = 3)
|
||||
{
|
||||
$sDomain = APP_SITE;
|
||||
$sDomain = \trim(APP_SITE);
|
||||
|
||||
$oCacher = $this->Cacher();
|
||||
$oHttp = \MailSo\Base\Http::SingletonInstance();
|
||||
|
||||
if ($oHttp->CheckLocalhost($sDomain) || !$oCacher)
|
||||
if (0 === \strlen($sDomain) || $oHttp->CheckLocalhost($sDomain) || !$oCacher)
|
||||
{
|
||||
return 'NO';
|
||||
}
|
||||
|
|
@ -4761,6 +4761,7 @@ class Actions
|
|||
$sSubject = $this->GetActionParam('Subject', '');
|
||||
$bTextIsHtml = '1' === $this->GetActionParam('TextIsHtml', '0');
|
||||
$bReadReceiptRequest = '1' === $this->GetActionParam('ReadReceiptRequest', '0');
|
||||
$bMarkAsImportant = '1' === $this->GetActionParam('MarkAsImportant', '0');
|
||||
$sText = $this->GetActionParam('Text', '');
|
||||
$aAttachments = $this->GetActionParam('Attachments', null);
|
||||
|
||||
|
|
@ -4801,6 +4802,11 @@ class Actions
|
|||
$oMessage->SetReadReceipt($oAccount->Email());
|
||||
}
|
||||
|
||||
if ($bMarkAsImportant)
|
||||
{
|
||||
$oMessage->SetPriority(\MailSo\Mime\Enumerations\MessagePriority::HIGH);
|
||||
}
|
||||
|
||||
$oMessage->SetSubject($sSubject);
|
||||
|
||||
$oToEmails = \MailSo\Mime\EmailCollection::NewInstance($sTo);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue