# $Id: oauth2_example_office365.sh,v 1.1 2025/10/08 13:52:49 gilles Exp gilles $ # I hope you can read # A line beginning with # is a comment # This shell script is for Linux users and MacOS users. echo Currently running through $0 "$@" echo Getting OAUTH2 tokens ! test -d && mkdir tokens # !!! The following CALL lines are the only part to edit !!! # Replace the email by the email you want an access-token to be used with imapsync # For a Office365 account it will be: ./oauth2_imap gilles.lamiral@outlook.com # END OF PART TO EDIT # Some extra features: # You can specify the token file with the option --token_file # example: # ./oauth2_imap --token_file my_token_file.txt gilles.lamiral@outlook.com