I'm parsing emails and came across an email with a mangled from address. The script puts out the following error
"PHP Notice: Unknown: Missing or invalid host name after @ (errflg=3) in Unknown on line 0"
Upon further reading I cam across this solution
https://stackoverflow.com/questions/3378469/how-to-get-rid-of-error-messages-with-phps-imap-fetchstructure
So I added the line to /ddeboer/imap/src/Message.php Line 66 and now my exception is caught cleanly. I did not make a pull request because I am not sure exactly what this function call is doing in that context. Also, cannot provide the raw email because it's in a chinese mailbox in an obscure ISP and I cannot figure out how to download the raw source. Great repo BTW. Thanks very much.
I'm parsing emails and came across an email with a mangled from address. The script puts out the following error
"PHP Notice: Unknown: Missing or invalid host name after @ (errflg=3) in Unknown on line 0"
Upon further reading I cam across this solution
https://stackoverflow.com/questions/3378469/how-to-get-rid-of-error-messages-with-phps-imap-fetchstructure
So I added the line to /ddeboer/imap/src/Message.php Line 66 and now my exception is caught cleanly. I did not make a pull request because I am not sure exactly what this function call is doing in that context. Also, cannot provide the raw email because it's in a chinese mailbox in an obscure ISP and I cannot figure out how to download the raw source. Great repo BTW. Thanks very much.