Skip to content

Commit

Permalink
Merge branch '2023.11' into 2024.11
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlabci committed Feb 17, 2025
2 parents 52b8add + 3eb7472 commit e25f1f8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tine20/Felamimail/Controller/Message/Send.php
Original file line number Diff line number Diff line change
Expand Up @@ -850,10 +850,15 @@ protected function _setMailRecipients(Zend_Mail $_mail, Felamimail_Model_Message
return $nonPrivateRecipients;
}

protected function _getErrorException($messageText)
protected function _getErrorException(string $messageText): Tinebase_Exception_SystemGeneric
{
$translation = Tinebase_Translation::getTranslation('Felamimail');
$message = sprintf($translation->_('Error: %s'), $messageText);
if (preg_match('/evp_decrypt/i', $messageText)) {
$message = $translation->_(
'Decryption Error: Maybe your shared credential cache key is longer than 24 chars?');
} else {
$message = sprintf($translation->_('Error: %s'), $messageText);
}
$tesg = new Tinebase_Exception_SystemGeneric($message);
$tesg->setTitle($translation->_('Could not send message'));

Expand Down

0 comments on commit e25f1f8

Please sign in to comment.