Releases: zbateson/mail-mime-parser
Releases · zbateson/mail-mime-parser
Add getAllHeaders for parts
- Small addition of 'getAllHeaders', returns an array of header objects so they can be traversed
- Fixed typehinting in Message.php (@DRoet)
Fix for mime-encoded header parts
Fixes error in decoding quoted-printable subject #83
Fix for mime-encoded header parts
Fixes error in decoding quoted-printable subject #83
Fix for long header lines, header parameters with split mime-encoded parts
Fix for long header lines
Patch for header lines longer than the RFC-imposed 998, which may cause header processing to stop and remaining lines to be considered part of the body #81
IdHeader, ReceivedHeader, saveContent and more
Changes in this release:
- New header classes and parsing for the following types of headers:
** IdHeader: for Content-ID, Message-ID, In-Reply-To and References
** ReceivedHeader: for "Received", check out (https://mail-mime-parser.org/api/1.1/classes/ZBateson.MailMimeParser.Header.ReceivedHeader.html)[the documentation]. - Find a part by Content-ID, for example:
$message->getPartByContentId('a part id');
- New MessagePart::getBinaryContentStream and saveContent (so you can $message->getBinaryContentStream() without it attaching charset conversion stream, and $message->saveContent() to save the stream as-is without charset conversion).
- $message->save() now also accepts a string filename to write to file
- Moved out charset library from stream-decorators and into its own mb-wrapper
- Renamed github zbateson/MailMimeParser to zbateson/mail-mime-parser and zbateson/StreamDecorators to stream-decorators
Add missing Microsoft charset codes
Add missing Microsoft codes as found in #79 and discussed/fixed in ddeboer/imap#270.
1.0 release
- Documentation fixes
- phpunit versions based on php version
- Fix copying/moving missing content-* headers when creating multipart messages from non-multipart ones
- Change SimpleDi's name to Container
- Move documentation to website to support 0.4* docs and 1.0 docs
For upgrade instructions please see the Upgrade Guide.
1.0 beta release
Fix method signatures for consistency
Changed method signatures for consistency:
- MessagePart::getHandle to MessagePart::getResourceHandle
- Message::getText/HtmlStream return Psr7 Streams instead of resource handles (to keep it consistent with getStream and getContentStream)
- Message::getText/HtmlResourceHandle were added