Skip to content

Commit

Permalink
release v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-virkus committed May 9, 2022
1 parent 46a8ffb commit 554593b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,34 @@
# 2.0.0
Improvements and fixes:
* Thanks to [matthiasn](https://github.com/matthiasn) the date parsing/generation on west of greenwich timezones now works properly.
* Improve automatic re-connecting when using the high-level MailClient API.
* Support timeouts for IMAP, SMTP and POP calls.
* `MimeMessage`:
- Get an alternative mime part easier with `MimePart? getAlternativePart(MediaSubtype subtype)`.
- Retrieve all recipients via the `List<MailAddress> get recipients` getter.
- Support decoding `binary` transfer-encoding for text message parts.
- Introduce `guid` / global unique IDs which are set automatically when using the high-level `MailClient`.
- Correctly unwrap header values before decoding them.
- Accept headers that have no space after the colon-separator.
* Improve high level API support for OAUTH:
- You can now define `refresh` and `onConfigChanged` callback methods when connecting to a mail service using `MailClient`.
* Support expunging messages when deleting them in `MailClient` with `Future<DeleteResult> deleteMessages( MessageSequence sequence, {bool expunge = false})`.
OauthAuthentication now contains a complete OauthToken.
main
* `MessageBuilder`: Access also text-attachments in the `attachments` getter.
* Only use `STARTTLS` when the IMAP service supports it.
* Simplify search API.

Breaking changes:
* Package structure is simplified, so that imports of specific classes are not possible anymore. Instead either `import 'package:enough_mail/enough_mail.dart';` or one of the specializes sub-packages `codecs.dart`,`discover.dart`, `highlevel.dart`, `imap.dart`, `mime.dart`, `pop.dart` or `smtp.dart`.
* `Authentication.passwordCleartext` is renamed to `Authentication.passwordClearText`
* `Mailbox` API has changed specifically when creating mailboxes yourself.

Other:
* Improved code style, enforcing linting rules.
* Improve [API documentation](https://pub.dev/documentation/enough_mail/latest/).
* Improve package structure
* Many further small-scale improvements.

# 1.3.6
- Fix generating messages with several recipients in `MessageBuilder`. Previously semicolons were used that were not accepted by all mail providers.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: enough_mail
description: IMAP, POP3 and SMTP for email developers. Choose between a low level and a high level API for mailing. Parse and generate MIME messages. Discover email settings.
version: 1.3.6
version: 2.0.0
homepage: https://github.com/Enough-Software/enough_mail

environment:
Expand Down

0 comments on commit 554593b

Please sign in to comment.