#9728 fixed, edi/load fails when mail has no message-ID

This commit is contained in:
Juan Ferrer 2019-02-06 16:50:07 +01:00
parent ae0973c16b
commit 0ae35c2622
3 changed files with 7 additions and 3 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.406.27) stable; urgency=low
hedera-web (1.406.28) stable; urgency=low
* Initial Release.

View File

@ -1,6 +1,6 @@
{
"name": "hedera-web",
"version": "1.406.27",
"version": "1.406.28",
"description": "Verdnatura web page",
"license": "GPL-3.0",
"repository": {

View File

@ -40,7 +40,11 @@ class Load extends Edi\Method {
$header = imap_headerinfo($imap, $msg);
$from = $header->from;
$mailId = trim($header->message_id, '<>');
if (property_exists($header, 'message_id'))
$mailId = trim($header->message_id, '<>');
else
$mailId = NULL;
if ($from && count($from) > 0)
$sender = $from[0]->mailbox .'@'. $from[0]->host;