You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An Attribute::class instance can be treated as array
Get the current client account configuration via Client::getConfig()
Delete a folder via Client::deleteFolder()
Extended UTF-7 support added (RFC2060)
Protocol::sizes() support added (fetch the message byte size via RFC822.SIZE). Accessible through Message::getSize() (thanks @didi1357)
Message::hasFlag() method added to check if a message has a specific flag
Message::getConfig() method added to get the current message configuration
Folder::select() method added to select a folder
Message::getAvailableFlags() method added to get all available flags
Live mailbox and fixture tests added
Attribute::map() method added to map all attribute values
Header::has() method added to check if a header attribute / value exist
All part attributes are now accessible via linked attribute
Restore a message from string Message::fromString()
Soft fail option added to all folder fetching methods. If soft fail is enabled, the method will return an empty collection instead of throwing an exception if the folder doesn't exist
Breaking changes
PHP ^8.0.2 required
nesbot/carbon version bumped to ^2.62.1
phpunit/phpunit version bumped to ^9.5.10
Header::get() always returns an Attribute::class instance
Attribute::class accessor methods renamed to shorten their names and improve the readability
All protocol methods that used to return array|bool will now always return a Response::class instance.
ResponseException::class gets thrown if a response is empty or contains errors
Message client is optional and can be null (e.g. if used in combination with Message::fromFile())
The message text or html body is now "" if its empty and not null