Пример #1
0
 public function getBody(MessageInterface $message)
 {
     if (!$message->getTicketId() || !$message->getTags()->only('user', 'priority')->isEmpty()) {
         return;
     }
     return $message->getSkinny();
 }
Пример #2
0
 public function clean(Email $email, MessageInterface $message)
 {
     if ($email->mail_delete) {
         $message->delete();
     }
     if ($email->mail_archivefolder) {
         $message->move($email->mail_archivefolder);
     }
 }
Пример #3
0
 public function attrs(MessageInterface $message)
 {
     return ['auth_id' => $message->getAuthorId(), 'source' => 'mail'];
 }