Skip to content

Releases: zbateson/mail-mime-parser

2.2.2

01 Sep 16:15
318cd80
Compare
Choose a tag to compare

#189 fixes a documentation error thanks to @Naitsirch
#197 Fix PHP 8.1 return type deprecation notices. @alexei-bykovski

2.2.1

22 Feb 21:45
Compare
Choose a tag to compare

Fix for #160 : empty utf8 quoted not parsed correctly, thanks @jszaszi

2.2.0

25 Jan 18:24
Compare
Choose a tag to compare

Fixes:

  • References header decoding problem #186 - IdHeader can now accept a mix of mime-encoded and non-mime-encoded parts
  • Issue with parsing ReceivedHeaders #183

2.1.1

09 Dec 18:11
b969a8a
Compare
Choose a tag to compare

#184 Adding #[\ReturnTypeWillChange] for PHP8.1 compatibility

Thanks @phpfui

2.1.0

09 Nov 18:30
0ef2d7d
Compare
Choose a tag to compare

Fixes #165 -- separates email address parsing into its own consumer so invalid characters can be ignored within an '<' and '>' chars representing the email address.

2.0.1

09 Nov 18:18
Compare
Choose a tag to compare

Fix an issue parsing long RFC2231 header values #182

1.3.3 - Fix an issue parsing long RFC2231 header values

09 Nov 18:17
Compare
Choose a tag to compare

2.0.0

23 Aug 02:22
da7b591
Compare
Choose a tag to compare

Huge thank you to the project sponsors who helped make this release happen.

  • Use pimple/pimple for di, refactor initialization:
    • Reconfigure the dependency container entirely, call MailMimePaser::setDependencyContainer
    • Add providers, call MailMimeParser::configureDependencyContainer with an array of providers
  • Parser improvements:
    • Modular parsing separated into classes for better extensibility
    • Dynamic/proxied parsing based on user requests (looking at message headers won't parse all content/children and is therefore very very fast even on larger messages)
    • Stream is no longer copied first, but must be closed after the message object is destroyed (or can be attached to the message)
  • Define and use interfaces instead of concrete classes for better extensibility, change of internal hierarchy that didn't make sense
    • IMessagePart instead of MessagePart, IMimePart instead of MimePart, IUUEncodedPart instead of UUEncodedPart, IMultiPart is new, IMessage instead of Message. HeaderPart and ParentHeaderPart no longer exist.
  • Remove deprecated resource handle methods:
    • Removes IMessage::getTextResourceHandle, IMessage::getHtmlResourceHandle and IMessagePart::getContentResourceHandle
  • Filtering parts is now done with simple callbacks. PartFilter is now just a convenience class with static methods that provides filtering callbacks instead of a concrete class used for filtering.
  • Other minor changes of note:
    • MimePart::getContentDisposition for a MimePart is now limited to returning 'inline' or 'attachment' even if the header has a different value.
    • IMultiPart::removeAllParts now returns the number of parts removed.

Beta1 release, 2.0

20 Aug 00:35
Compare
Choose a tag to compare

Proxy parser refactor/fix, testing, documentation.

Beta release, 2.0

06 Aug 05:50
Compare
Choose a tag to compare

Thanks to my sponsors @SecuMailer, @mxguardian and @ericlbarnes

Changes and progress (and any issues you find) in #171