The new version brings major refactoring by removing old code and replacing it with more modern APIs. In particular, it uses the `mailbox` module for dealing with the local mailbox and the `email.message.EmailMessage` class for handling individual messages. This allows for new features but also requires Python 3.6 or newer.
New features
- The format of the local mailbox can now be chosen to be **Maildir** as alternative to mbox. There is a new `-m` switch on the CLI to choose it
- Using the Python API, a function `msg_filter` can be passed to the download methods that can be used to filter out or modify certain messages
Breaking changes
- Python 3.6 is now the minimum required version