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
74
+
- Get the current client account configuration via `Client::getConfig()`
75
+
- Delete a folder via `Client::deleteFolder()`
76
+
- Extended UTF-7 support added (RFC2060)
77
+
-`Protocol::sizes()` support added (fetch the message byte size via RFC822.SIZE). Accessible through `Message::getSize()` (thanks @didi1357)
78
+
-`Message::hasFlag()` method added to check if a message has a specific flag
79
+
-`Message::getConfig()` method added to get the current message configuration
80
+
-`Folder::select()` method added to select a folder
81
+
-`Message::getAvailableFlags()` method added to get all available flags
82
+
- Live mailbox and fixture tests added
83
+
-`Attribute::map()` method added to map all attribute values
84
+
-`Header::has()` method added to check if a header attribute / value exist
85
+
- All part attributes are now accessible via linked attribute
86
+
- Restore a message from string `Message::fromString()`
87
+
- 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
88
+
89
+
90
+
### Breaking changes
91
+
- PHP ^8.0.2 required
92
+
-`nesbot/carbon` version bumped to ^2.62.1
93
+
-`phpunit/phpunit` version bumped to ^9.5.10
94
+
-`Header::get()` always returns an `Attribute::class` instance
95
+
-`Attribute::class` accessor methods renamed to shorten their names and improve the readability
96
+
- All protocol methods that used to return `array|bool` will now always return a `Response::class` instance.
97
+
-`ResponseException::class` gets thrown if a response is empty or contains errors
98
+
- Message client is optional and can be null (e.g. if used in combination with `Message::fromFile()`)
99
+
- The message text or html body is now "" if its empty and not `null`
100
+
101
+
18
102
## [4.1.2] - 2023-01-18
19
103
### Fixed
20
104
- Type casting added to several ImapProtocol return values
0 commit comments