Git Product home page Git Product logo

Comments (4)

ddeboer avatar ddeboer commented on May 20, 2024

Thanks for the bug report. Are such From: headers valid? If so, would you like to open a PR to fix this?

from imap.

Slamdunk avatar Slamdunk commented on May 20, 2024

Yes such From header is valid, but the spaces should be escaped.

@vmattila can you provide the original raw message headers?

from imap.

vmattila avatar vmattila commented on May 20, 2024

I think I do not have the original message anymore to copy-paste the raw headers here.

As it has been a while since last update, I searched through the codebase and could not find imap_headerinfo() call anywhere. Before anybody gets confused as I was, must clarify that https://github.com/ddeboer/imap/blob/master/src/Message.php#L184 imap_header() is alias to imap_headerinfo() . ;)

from imap.

Slamdunk avatar Slamdunk commented on May 20, 2024

In #199 we've put into test a standard complex email address:

Cc: "This one: is \"right\"" <[email protected]>, No-address

The format without the double-quotes is not valid and we can't do anything to fix it (except complex parsing of raw headers or throwing away the imap extension).
We have removed the __toString() function: use the getAddress() from now so at least you can catch handle graceful the error.

from imap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.