mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Simplify enum MessagePriority
This commit is contained in:
parent
851c1b6472
commit
02c6d30a7e
2 changed files with 5 additions and 5 deletions
|
|
@ -18,12 +18,12 @@ namespace MailSo\Mime\Enumerations;
|
|||
*/
|
||||
enum MessagePriority: int
|
||||
{
|
||||
case LOWEST = 5;
|
||||
case NORMAL = 3;
|
||||
case HIGHEST = 1;
|
||||
case Lowest = 5;
|
||||
case Normal = 3;
|
||||
case Highest = 1;
|
||||
|
||||
public function toMIME() : string
|
||||
{
|
||||
return $this->value . ' (' . \ucfirst(\strtolower($this->name)) . ')';
|
||||
return $this->value . ' (' . $this->name . ')';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -903,7 +903,7 @@ trait Messages
|
|||
}
|
||||
|
||||
if (!empty($this->GetActionParam('markAsImportant', 0))) {
|
||||
$oMessage->SetPriority(\MailSo\Mime\Enumerations\MessagePriority::HIGHEST);
|
||||
$oMessage->SetPriority(\MailSo\Mime\Enumerations\MessagePriority::Highest);
|
||||
}
|
||||
|
||||
$oMessage->SetSubject($this->GetActionParam('subject', ''));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue