How can we use offlineimap to sync our corporate email account that sits on outlook.office365.com, when its authentication asks for a two-factor authentication (2FA) that is a Symantec VIP Access one?

I guess we could open a valid session by authenticating in firefox, and then offlineimap could use the token that is stored in firefox cookie. Does it make sense? I guess this would need some upgrading in offlineimap, and we could re-do something from another python project that makes use of session tokens from firefox cookies. Do you remember any?

Does these code snippets help?




Thank you very much in advance for contributions on this challenge.

Kind regards,

Bruno Schroeder

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.