o365 Mail Extractor was written to extract all email addresses on an Office365 account
Modify lines 9 and 10 with your values:
email_user = ""
email_pass = ""
It is now possible to use o365_mail_extractor.py
If you have MFA activated, it is necessary to create an application password: https://mysignins.microsoft.com/security-info
Régis SENET (rsenet)
Bug reports and pull requests are welcome on GitHub.
The project is available as open source under the terms of the GPLv3