Giter Club home page Giter Club logo

Comments (11)

abulhol avatar abulhol commented on August 17, 2024 1

ping

from laminas-mail.

weierophinney avatar weierophinney commented on August 17, 2024

I have further delved into the source code.
The function public static function fromString($string, $EOL = self::EOL) in Headers.php which parses the full message in this case contains no condition for a break, so it is logical that the exception is thrown when the parser reaches the multipart message body.
I wonder how this bug could go unnoticed until now?


Originally posted by @abulhol at zendframework/zend-mail#245 (comment)

from laminas-mail.

abulhol avatar abulhol commented on August 17, 2024

Any news on this?

from laminas-mail.

Ocramius avatar Ocramius commented on August 17, 2024

@abulhol if you have a reproducer (test case), that would help pinning the bug down

from laminas-mail.

abulhol avatar abulhol commented on August 17, 2024

@Ocramius I think I have described the issue in enough detail, and @weierophinney has already investigated it sufficiently (and pinned down the bug). I don't have time to write a test case, sorry.

from laminas-mail.

Ocramius avatar Ocramius commented on August 17, 2024

@abulhol eh, then don't expect somebody else to have time/interest in trying to reproduce the problem in their local (and then CI) environment 😞

from laminas-mail.

glensc avatar glensc commented on August 17, 2024

@abulhol you can at least include a .php snippet and .txt attachment of reproducer as attachments to the pull request. be sure it shows the problem when executed standalone.

from laminas-mail.

abulhol avatar abulhol commented on August 17, 2024

ok @glensc I will see what I can do, thx.

from laminas-mail.

abulhol avatar abulhol commented on August 17, 2024

@Ocramius @glensc Here you go with a fully working example, please let me know if it doesn't run on your side:
https://github.com/abulhol/pop3test

from laminas-mail.

abulhol avatar abulhol commented on August 17, 2024

Hey guys, I would appreciate some feedback after having made the effort to create a working example.

from laminas-mail.

ftoledo avatar ftoledo commented on August 17, 2024

i recently see dimilasr issue on glpi:

[2024-05-21 18:22:03] glpiphplog.CRITICAL:   *** Uncaught Exception Laminas\Mail\Exception\RuntimeException: Line "--_00" does not match header format! in /var/www/glpi/vendor/laminas/laminas-mail/src/Headers.php at line 116                
  Backtrace :                                                                                                           
  vendor/laminas/laminas-mime/src/Decode.php:162     Laminas\Mail\Headers::fromString()                                 
  ...r/laminas/laminas-mail/src/Storage/Pop3.php:105 Laminas\Mime\Decode::splitMessage()                                
  ...r/laminas/laminas-mail/src/Storage/Part.php:175 Laminas\Mail\Storage\Pop3->getRawContent()                         
  ...r/laminas/laminas-mail/src/Storage/Part.php:249 Laminas\Mail\Storage\Part->cacheContent()                          
  ...r/laminas/laminas-mail/src/Storage/Part.php:471 Laminas\Mail\Storage\Part->countParts()                            
  src/MailCollector.php:1607                         Laminas\Mail\Storage\Part->rewind()                                
  src/MailCollector.php:1778                         MailCollector->getRecursiveAttached()                              
  src/MailCollector.php:1081                         MailCollector->getAttached()                                       
  src/MailCollector.php:811                          MailCollector->buildTicket()                                       
  src/MailCollector.php:1923                         MailCollector->collect()                                           
  src/CronTask.php:1027                              MailCollector::cronMailgate()                                      
  front/cron.php:82                                  CronTask::launch()                       

from laminas-mail.

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.