mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 18:08:21 +01:00
fix fatal error for Horde_Mime < 2.5.0
This commit is contained in:
parent
7a40d7a71f
commit
d0e2886f98
@ -409,9 +409,10 @@ class egw_mailer extends Horde_Mime_Mail
|
||||
*/
|
||||
function send()
|
||||
{
|
||||
if (!($message_id = $this->getHeader('Message-ID')))
|
||||
if (!($message_id = $this->getHeader('Message-ID')) &&
|
||||
class_exists('Horde_Mime_Headers_MessageId')) // since 2.5.0
|
||||
{
|
||||
$message_id = Horde_Mime_Headers_MessageId::create();
|
||||
$message_id = Horde_Mime_Headers_MessageId::create('EGroupware');
|
||||
$this->addHeader('Message-ID', $message_id);
|
||||
}
|
||||
$body_sha1 = null; // skip sha1, it requires whole mail in memory, which we traing to avoid now
|
||||
|
Loading…
Reference in New Issue
Block a user