forked from verdnatura/hedera-web
#9728 fixed, edi/load fails when mail has no message-ID
This commit is contained in:
parent
ae0973c16b
commit
0ae35c2622
|
@ -1,4 +1,4 @@
|
|||
hedera-web (1.406.27) stable; urgency=low
|
||||
hedera-web (1.406.28) stable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hedera-web",
|
||||
"version": "1.406.27",
|
||||
"version": "1.406.28",
|
||||
"description": "Verdnatura web page",
|
||||
"license": "GPL-3.0",
|
||||
"repository": {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue