Comments (11)
ping
from laminas-mail.
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.
Any news on this?
from laminas-mail.
@abulhol if you have a reproducer (test case), that would help pinning the bug down
from laminas-mail.
@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.
@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.
@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.
ok @glensc I will see what I can do, thx.
from laminas-mail.
@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.
Hey guys, I would appreciate some feedback after having made the effort to create a working example.
from laminas-mail.
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)
- Broken Content-Type header value with a new-line HOT 2
- No Sort Function / Option ? HOT 1
- Location of thrown exceptions make them impossible to catch properly. HOT 4
- TO_EXCESS_QP warning from RSPAMD or SpamAssassin HOT 2
- Action Required: Fix Renovate Configuration HOT 2
- Get just the reply from a threaded email
- Use "text/html" content type instead of "multipart/alternative" HOT 7
- Laminas\Mail\Storage\Message fails with non utf8 characters
- Pass SMTP server response code to Runtime Exception HOT 5
- Current Updates in ServiceManager break Tests HOT 1
- Laminas\Mail\Transport\Exception\RuntimeException: Unable to send mail: mail(): Passing null to parameter #2 ($subject) of type string is deprecated in /app/vendor/laminas/laminas-mail/src/Transport/Sendmail.php:310 HOT 2
- Method headerExists in documentation does not exist HOT 2
- Mime prepare email message body error HOT 2
- SCRAM-SHA-1(-PLUS) + SCRAM-SHA-256(-PLUS) + SCRAM-SHA-512(-PLUS) + SCRAM-SHA3-512(-PLUS) supports HOT 5
- v2.23 conflicts with psr/container 2.0 HOT 1
- `Headers::fromString` strips local part quotes which turns it into invalid dot-atom format HOT 2
- Support for PHP 8.3
- IMAP supports only LOGIN authentication method. Ignores LOGINDISABLE capability. HOT 2
- message marked as deleted, but could not expunge HOT 4
- in GLPI 9.5.13. The emails that laminas/laminas-mail does not want to process are created by an "internal php script"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laminas-mail.