Skip to content

Releases: zbateson/mail-mime-parser

Add getAllHeaders for parts

08 Mar 04:31
Compare
Choose a tag to compare
  • 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

24 Dec 19:38
Compare
Choose a tag to compare

Fixes error in decoding quoted-printable subject #83

Fix for mime-encoded header parts

24 Dec 19:51
Compare
Choose a tag to compare

Fixes error in decoding quoted-printable subject #83

Fix for long header lines, header parameters with split mime-encoded parts

18 Oct 14:36
Compare
Choose a tag to compare

Release includes:

  • 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
  • Patch for mime encoded parts when split in multiple parameter value continuation #80
  • Improved searching for mime boundaries

Fix for long header lines

18 Oct 14:31
Compare
Choose a tag to compare

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

30 Sep 19:37
Compare
Choose a tag to compare

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

21 Sep 18:25
Compare
Choose a tag to compare

Add missing Microsoft codes as found in #79 and discussed/fixed in ddeboer/imap#270.

1.0 release

19 Aug 02:24
Compare
Choose a tag to compare
  • 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

27 Jul 19:41
Compare
Choose a tag to compare
1.0 beta release Pre-release
Pre-release

Adds fix for duplicate header clobbering #58, and prefers first set header instead of last #74.

Fix method signatures for consistency

25 Jul 19:45
Compare
Choose a tag to compare
Pre-release

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