v2.0.0
Improvements and fixes:
- Thanks to 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 recipientsgetter. - Support decoding
binarytransfer-encoding for text message parts. - Introduce
guid/ global unique IDs which are set automatically when using the high-levelMailClient. - Correctly unwrap header values before decoding them.
- Accept headers that have no space after the colon-separator.
- Get an alternative mime part easier with
- Improve high level API support for OAUTH:
- You can now define
refreshandonConfigChangedcallback methods when connecting to a mail service usingMailClient.
- You can now define
- Support expunging messages when deleting them in
MailClientwithFuture<DeleteResult> deleteMessages( MessageSequence sequence, {bool expunge = false}).
OauthAuthentication now contains a complete OauthToken.
main MessageBuilder: Access also text-attachments in theattachmentsgetter.- Only use
STARTTLSwhen 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-packagescodecs.dart,discover.dart,highlevel.dart,imap.dart,mime.dart,pop.dartorsmtp.dart. Authentication.passwordCleartextis renamed toAuthentication.passwordClearTextMailboxAPI has changed specifically when creating mailboxes yourself.
Other:
- Improved code style, enforcing linting rules.
- Improve API documentation.
- Improve package structure
- Many further small-scale improvements.