-
-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"date" header is not reliable #63
Comments
Has this been fixed in 49b62f0? |
Hey guys, no it has not been fixed becaus I ran into the same issue today using the latest release. $message->getDate() returned null because ONLY maildate is set imap/src/Message/AbstractMessage.php Line 114 in 368bae1
|
Can you post here the original raw message that gets you this behavior please? |
Well in this email the Date header misses completely, there is no How could your fix KundKMC@2a7fb4a work? |
You are right, there is not Header Field. But this code gets the job done:
$date is 2013-06-19 14:49:55 with that E-Mail. |
The only possibility for your snippet to work is the presence of a I can only help with the original raw message 😞 |
Okay. I put some offort in it and it seems to work both ways:
Creates a mailbox, uploads the EML File and shows: string(26) "29-Nov-2018 15:46:40 +0100" WTF!? It seems that there is some ReWriting going on, even while creating a message. |
Yup, it seems there an overwrite. It is likely that it happens only when querying the server through IMAp protocol, and the email remains untouched. |
Sometimes
date
header is not in a proper format, for example, mail.ru returns this fordate
header:=?utf-8?B?0fAsIDQg4OLjIDIwMTAgMTM6MDE6NDAgKzAzMDA=?=
This makes library fail in file
Header.php
on line 33. Usingmaildate
from headers array instead solved it for me, but I'm not sure if this is a right way to do this.The text was updated successfully, but these errors were encountered: