Skip to content

Commit c9a872c

Browse files
committed
php-imap core updated to v2.3.0
1 parent 3325cb2 commit c9a872c

File tree

3 files changed

+66
-3
lines changed

3 files changed

+66
-3
lines changed

CHANGELOG.md

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,62 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
66

77
## [UNRELEASED]
88
### Fixed
9+
- NaN
10+
11+
### Added
12+
- NaN
13+
14+
### Breaking changes
15+
- NaN
16+
17+
18+
## [2.3.0] - 2020-12-21
19+
### Fixed
920
- Missing env variable `IMAP_AUTHENTICATION` added
21+
- Header decoding problem fixed
22+
- IMAP::FT_PEEK removing "Seen" flag issue fixed
23+
- Text/Html body fetched as attachment if subtype is null
24+
- Potential header overwriting through header extensions
25+
- Prevent empty attachments
26+
- Search performance increased by fetching all headers, bodies and flags at once
27+
- Legacy protocol support updated
28+
- Fix Query pagination. (thanks [@mikemiller891](https://github.com/mikemiller891))
29+
- Missing array decoder method added (thanks [@lutchin](https://github.com/lutchin))
30+
- Additional checks added to prevent message from getting marked as seen
31+
- Boundary parsing improved (thanks [@AntonioDiPassio-AppSys](https://github.com/AntonioDiPassio-AppSys))
32+
- Idle operation updated
33+
- Cert validation issue fixed
34+
- Allow boundaries ending with a space or semicolon (thanks [@smartilabs](https://github.com/smartilabs))
35+
- Ignore IMAP DONE command response
36+
- Default `options.fetch` set to `IMAP::FT_PEEK`
37+
- Address parsing fixed
38+
- Alternative rfc822 header parsing fixed
39+
- Parse more than one header key
40+
- Fetch folder overview fixed
41+
- `Message::getTextBody()` fallback value fixed
1042

1143
### Added
1244
- Default folder locations added
45+
- Search for messages by message-Id
46+
- Search for messages by In-Reply-To
47+
- Message threading added `Message::thread()`
48+
- Default folder locations added
49+
- Set fetch order during query [@Max13](https://github.com/Max13)
50+
- Missing message setter methods added
51+
- `Folder::overview()` method added to fetch all headers of all messages in the current folder
52+
- Force a folder to be opened
53+
- Proxy support added
54+
- Flexible disposition support added
55+
- New `options.message_key` option `uid` added
56+
- Protocol UID support added
57+
- Flexible sequence type support added
1358

1459
### Breaking changes
15-
- NaN
60+
- Depending on your configuration, your certificates actually get checked. Which can cause an aborted connection if the certificate can not be validated.
61+
- Messages don't get flagged as read unless you are using your own custom config.
62+
- All `Header::class` attribute keys are now in a snake_format and no longer minus-separated.
63+
- `Message::getTextBody()` no longer returns false if no text body is present. `null` is returned instead.
64+
1665

1766
## [2.2.0] - 2020-10-16
1867
### Fixed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"ext-mbstring": "*",
2727
"ext-iconv": "*",
2828
"ext-fileinfo": "*",
29-
"webklex/php-imap": "^2.2",
29+
"webklex/php-imap": "^2.3",
3030
"laravel/framework": ">=5.0.0"
3131
},
3232
"autoload": {

src/config/imap.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@
5555
'username' => env('IMAP_USERNAME', '[email protected]'),
5656
'password' => env('IMAP_PASSWORD', ''),
5757
'authentication' => env('IMAP_AUTHENTICATION', null),
58+
'proxy' => [
59+
'socket' => null,
60+
'request_fulluri' => false,
61+
'username' => null,
62+
'password' => null,
63+
]
5864
],
5965

6066
/*
@@ -92,6 +98,9 @@
9298
| -Fetch option:
9399
| IMAP::FT_UID - Message marked as read by fetching the message body
94100
| IMAP::FT_PEEK - Fetch the message without setting the "seen" flag
101+
| -Fetch sequence id:
102+
| IMAP::ST_UID - Fetch message components using the message uid
103+
| IMAP::ST_MSGN - Fetch message components using the message number
95104
| -Body download option
96105
| Default TRUE
97106
| -Flag download option
@@ -101,9 +110,12 @@
101110
| 'id' - Use the MessageID as array key (default, might cause hickups with yahoo mail)
102111
| 'number' - Use the message number as array key (isn't always unique and can cause some interesting behavior)
103112
| 'list' - Use the message list number as array key (incrementing integer (does not always start at 0 or 1)
113+
| 'uid' - Use the message uid as array key (isn't always unique and can cause some interesting behavior)
104114
| -Fetch order
105115
| 'asc' - Order all messages ascending (probably results in oldest first)
106116
| 'desc' - Order all messages descending (probably results in newest first)
117+
| -Disposition types potentially considered an attachment
118+
| Default ['attachment', 'inline']
107119
| -Common folders
108120
| Default folder locations and paths assumed if none is provided
109121
| -Open IMAP options:
@@ -119,11 +131,13 @@
119131
*/
120132
'options' => [
121133
'delimiter' => '/',
122-
'fetch' => \Webklex\PHPIMAP\IMAP::FT_UID,
134+
'fetch' => \Webklex\PHPIMAP\IMAP::FT_PEEK,
135+
'sequence' => \Webklex\PHPIMAP\IMAP::ST_MSGN,
123136
'fetch_body' => true,
124137
'fetch_flags' => true,
125138
'message_key' => 'list',
126139
'fetch_order' => 'asc',
140+
'dispositions' => ['attachment', 'inline'],
127141
'common_folders' => [
128142
"root" => "INBOX",
129143
"junk" => "INBOX/Junk",

0 commit comments

Comments
 (0)