Skip to content

Commit 59e5f2c

Browse files
Merge pull request #258 from Dr-Usman/update-version
Bump to 2.1.7, Update dependencies and improve type handling
2 parents a5c8251 + 6571fcd commit 59e5f2c

7 files changed

Lines changed: 43 additions & 34 deletions

File tree

CHANGELOG.md

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# 2.1.7
2+
* chore: Update plugin and dependencies versions - thanks to [Dr-Usman](https://github.com/Dr-Usman)!
3+
* chore: pub upgrade to bring in intl 0.20.2 - thanks to [jpohhhh](https://github.com/jpohhhh)!
4+
* Fix: FetchImapResult.replaceMatchingMessages - thanks to [scribetw](https://github.com/scribetw)!
5+
* Fix: trim lines read after decoding - thanks to [vware](https://github.com/vware)!
6+
* Fix: Remove extra double quotes for search query dates - thanks to [ig-garcia](https://github.com/ig-garcia)!
7+
18
# 2.1.6
29
* Fix: Fix serialization of ServerConfig - thanks to [RobinJespersen](https://github.com/RobinJespersen)!
310
* Feat: allow to specify connection timeout in high level API and increase default timeout
@@ -123,13 +130,13 @@ Other:
123130
- Retrieve a MIME part wit the fetchId `1` correctly.
124131
- `ImapClient.idleStart()` throws an error when no mailbox is selected.
125132
- `MailClient.fetchMessageContents()` allows you to specify which media types you want to include with the `includedInlineTypes` parameter, e.g. `final mime = await mailClient.fetchMessageContents(envelopeMime, includedInlineTypes: [MediaToptype.image]);`.
126-
- Convenience improvements:
133+
- Convenience improvements:
127134
* Select a mailbox just by it's flag like `MailboxFlag.sent` with `MailClient.selectMailboxByFlag(MailboxFlag)` method.
128135
* Check if an email address contains a personal name with `MailAddress.hasPersonalName` getter.
129136

130137
# 1.2.1
131138
- Handle raw data in parameter values of IMAP `FETCH` responses.
132-
139+
133140
# 1.2.0
134141
- Thanks to [KevinBLT](https://github.com/KevinBLT) mime messages will now always have a valid date header.
135142
- The high level search API has been extended and access simplified
@@ -160,7 +167,7 @@ Other:
160167
- Breaking changes to `v0.3`:
161168
* `MessageBuilder.encoding` is renamed to `MessageBuilder.transferEncoding` and the `enum` previously called `MessageEncoding` is now called `TransferEncoding`. All optional parameters previously called `encoding` are now also named `transferEncoding`.
162169
* `MetaDataEntry.entry` has been renamed to `MetaDataEntry.name`.
163-
* `ImapClient.setQuota()` and `getQuota()` methods use named parameters.
170+
* `ImapClient.setQuota()` and `getQuota()` methods use named parameters.
164171
* Due to null safety, a lots of functions that previously (wrongly) accepted `null` parameters do not accept `null` as input anymore.
165172
* Some fields changed to `final` to ensure consistency.
166173

@@ -176,7 +183,7 @@ Other:
176183
* BCC header is now stripped from messages before sending them via SMTP
177184
- [A.Zulli](https://github.com/azulli) contributed major IMAP features in this release:
178185
* Sort messages with `ImapClient.sortMessages(...)` [SORT](https://tools.ietf.org/html/rfc5256) - and also use the extended sort mechanism with specifying `returnOptions` on servers with [ESORT](https://tools.ietf.org/html/rfc5267).
179-
* `ImapClient.searchMessages(...)` now accepts `List<ReturnOption>` parameter for extending the search according to the [ESEARCH](https://tools.ietf.org/html/rfc4731) standard.
186+
* `ImapClient.searchMessages(...)` now accepts `List<ReturnOption>` parameter for extending the search according to the [ESEARCH](https://tools.ietf.org/html/rfc4731) standard.
180187
* Support `PARTIAL` responses according to the [CONTEXT](https://tools.ietf.org/html/rfc5267) IMAP extension.
181188
* Use the LIST extensions:
182189
* [rfc5258](https://tools.ietf.org/html/rfc5258): `LIST` command extensions
@@ -191,7 +198,7 @@ Other:
191198
* You can now also prepend parts by setting `insert` to `true` when calling `addPart()`.
192199
- Other improvements and bugfixes:
193200
* Remove some dependencies and relax constraints on some so that we all get quicker through the `null-safety` challenge.
194-
* Fixed decoding of 8bit messages that use a different charset than UTF8
201+
* Fixed decoding of 8bit messages that use a different charset than UTF8
195202
* Fixed header decoding in some edge cases
196203
* Some fixes in parsing personal names in email addresses
197204
* Support Chinese encodings `GBK` and `GB-2312`
@@ -205,7 +212,7 @@ Other:
205212
- Support non-ASCII IMAP searches when supported by server
206213
- Fix reconnection issue for `ImapClient`
207214
- Fix decoding of sequentiell encoded words in edge cases
208-
- Do a `noop` when resuming `MailClient` when server does not support `IDLE`
215+
- Do a `noop` when resuming `MailClient` when server does not support `IDLE`
209216

210217
## 0.2.0
211218
- ImapClient now processes tasks sequentially, removing the dreaded `StreamSink is bound to a stream` exception when accessing ImapClient from several threads.
@@ -227,13 +234,13 @@ Other:
227234
* `BodyPart.id` is renamed to `BodyPart.cid` to make the meaning clearer.
228235

229236
## 0.1.0
230-
- Moving from response based to exceptions, compare the migration guide for details compare the migration guide in [Readme.md](https://github.com/Enough-Software/enough_mail/blob/main/README.md#Migrating) and #101 for details - specicial thanks to [Tienisto](https://github.com/Tienisto)
237+
- Moving from response based to exceptions, compare the migration guide for details compare the migration guide in [Readme.md](https://github.com/Enough-Software/enough_mail/blob/main/README.md#Migrating) and #101 for details - specicial thanks to [Tienisto](https://github.com/Tienisto)
231238
- Improved performance when downloading large data significantly
232239
- High Level API now checks for SMTP START TLS support before switching to a secure connection when connected via plan sockets
233240
- Low level SMTP API now exposes all found server capabilities
234241
- Fix decoding bug for UTF8 8 bit encoded text
235242
- `ImapClient.search(...)` now returns a `MessageSequence` instead just a list of integers
236-
- High level API now supports moving messages with `MailClient.moveMessages(...)` and `MailClient.undoMoveMessages()` methods
243+
- High level API now supports moving messages with `MailClient.moveMessages(...)` and `MailClient.undoMoveMessages()` methods
237244
- High level API now supports deleting messages with `MailClient.deleteMessages(...)` and `MailClient.undoDeleteMessages()` methods
238245

239246
## 0.0.36
@@ -282,9 +289,9 @@ Other:
282289
- [Q-Encoding](https://tools.ietf.org/html/rfc2047#section-4.2) is used for encoding/decoding corresponding MIME message headers now, compare #77 for details
283290

284291
## 0.0.31
285-
- Mime: List all message parts with a specfic Content-Disposition with `MimeMessage.findContentInfo(ContenDisposition disposition)`.
292+
- Mime: List all message parts with a specfic Content-Disposition with `MimeMessage.findContentInfo(ContenDisposition disposition)`.
286293
- Mime: Retrieve an individual message part with `MimeMessage.getPart(String fetchId)`
287-
- Bugfix: fetch individual message parts via IMAP with `BODY[1.2]` now works.
294+
- Bugfix: fetch individual message parts via IMAP with `BODY[1.2]` now works.
288295
- MailClient: Download individual message parts with `MailClient.fetchMessagePart(MimeMessage message, String fetchId)`.
289296
- MailClient: events now provide reference to used `MailClient` instance, so that apps can differentiate between accounts.
290297
- MessageBuilder: allow to specify user aliases and to handle + aliases and to differentiate between reply and reply-all in `MessageBuilder.prepareReplyToMessage()`
@@ -305,8 +312,8 @@ Other:
305312

306313
## 0.0.29
307314
- Add `discconect()` method to high level `MailClient` API
308-
- Encode and decode mailbox names using Modified UTF7 encoding
309-
- Add [IMAP support for UTF-8](https://tools.ietf.org/html/rfc6855)
315+
- Encode and decode mailbox names using Modified UTF7 encoding
316+
- Add [IMAP support for UTF-8](https://tools.ietf.org/html/rfc6855)
310317

311318
## 0.0.28
312319
- High level `MailClient` API supports IMAP IDLE, POP and SMTP.
@@ -381,7 +388,7 @@ Other:
381388

382389
## 0.0.12
383390

384-
- Forward messages with `MessageBuilder.prepareForwardMessage()`
391+
- Forward messages with `MessageBuilder.prepareForwardMessage()`
385392

386393
## 0.0.11
387394

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Add this dependency your pubspec.yaml file:
99

1010
```
1111
dependencies:
12-
enough_mail: ^2.1.5
12+
enough_mail: ^2.1.7
1313
```
1414
The latest version or `enough_mail` is [![enough_mail version](https://img.shields.io/pub/v/enough_mail.svg)](https://pub.dartlang.org/packages/enough_mail).
1515

lib/src/discover/client_config.g.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/mail/mail_authentication.g.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/private/util/mail_signature.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'dart:convert';
22

33
import 'package:crypto/crypto.dart';
4-
import 'package:encrypt/encrypt.dart';
4+
import 'package:encrypter_plus/encrypter_plus.dart';
55
import 'package:pointycastle/pointycastle.dart' show RSAPrivateKey;
66

77
import '../../message_builder.dart';

pubspec.yaml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: enough_mail
22
description: IMAP, POP3 and SMTP for email developers. Choose between a low
33
level and a high level API for mailing. Parse and generate MIME messages.
44
Discover email settings.
5-
version: 2.1.6
5+
version: 2.1.7
66
homepage: https://github.com/Enough-Software/enough_mail
77
topics:
88
- email
@@ -13,29 +13,31 @@ topics:
1313

1414

1515
environment:
16-
sdk: '>=2.19.0 <4.0.0'
16+
sdk: '>=3.0.0 <4.0.0'
1717

1818
dependencies:
19-
basic_utils: ^5.6.1
20-
collection: ^1.16.0
21-
crypto: ^3.0.0
22-
encrypt: ^5.0.0
23-
enough_convert: ^1.5.0
24-
event_bus: ^2.0.0
19+
basic_utils: ^5.8.2
20+
collection: ^1.19.1
21+
crypto: ^3.0.6
22+
# encrypt: ^5.0.3
23+
encrypter_plus: ^5.1.0
24+
enough_convert: ^1.6.0
25+
event_bus: ^2.0.1
2526
intl: ^0.20.2
26-
json_annotation: ^4.8.0
27-
pointycastle: ^3.6.0
28-
synchronized: ^3.1.0
27+
json_annotation: ^4.9.0
28+
pointycastle: ^4.0.0
29+
synchronized: ^3.4.0
2930
xml: ">=6.0.0 <7.0.0"
3031

3132
dependency_overrides:
32-
http: ^1.1.0 # for dart_code_metrics
33+
# http: ^1.4.0 # for dart_code_metrics
3334

3435
dev_dependencies:
35-
build_runner: ^2.3.0
36-
dart_code_metrics: 5.7.6
36+
build_runner: ^2.6.0
37+
# dart_code_metrics: 5.7.6
38+
dart_code_linter: ^3.0.0
3739
flutter_lints: ^6.0.0
38-
json_serializable: ^6.3.0
40+
json_serializable: ^6.10.0
3941
lints: ^6.0.0
40-
test: ^1.20.1
42+
test: ^1.26.3
4143
timezone: ^0.10.1

test/mock_socket.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ class MockSocket implements Socket {
326326
}
327327
}
328328

329-
class MockStreamSubscription extends StreamSubscription<Uint8List> {
329+
class MockStreamSubscription implements StreamSubscription<Uint8List> {
330330
MockStreamSubscription(this.handleData, this.handleError, this.handleDone);
331331
void Function(Uint8List data)? handleData;
332332
Function? handleError;

0 commit comments

Comments
 (0)