Skip to content

Unknown: Missing or invalid host name after @ (errflg=3) in Unknown on line 0 #308

Description

@peter-schmandra-yesmail

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions