2024-09-23 11:50:35 +04:00
|
|
|
[general]
|
|
|
|
pythonfile = ~/.offlineimap.py
|
2024-09-24 09:38:56 +04:00
|
|
|
accounts = Proton, Outlook
|
2024-09-23 11:50:35 +04:00
|
|
|
|
|
|
|
[Account Proton]
|
|
|
|
localrepository = Proton-local
|
|
|
|
remoterepository = Proton-remote
|
|
|
|
|
|
|
|
[Repository Proton-local]
|
|
|
|
type = Maildir
|
|
|
|
localfolders = ~/Mail/Proton
|
|
|
|
|
|
|
|
[Repository Proton-remote]
|
|
|
|
type = IMAP
|
|
|
|
ssl = no
|
|
|
|
remotehost = 127.0.0.1
|
|
|
|
remoteport = 1143
|
|
|
|
remoteusereval = get_user("Proton\ Account")
|
2024-09-24 06:22:13 +04:00
|
|
|
remotepasseval = hydroxide("/home/sako/.hydroxide-bridge-pass")
|
2024-09-24 09:38:56 +04:00
|
|
|
folderfilter = lambda foldername: foldername in [ "All Mail", "Archive", "Drafts", "INBOX", "Sent", "Spam", "Starred", "Trash" ]
|
|
|
|
|
|
|
|
[Account Outlook]
|
|
|
|
localrepostiory = Outlook-local
|
|
|
|
remoterepository = Outlook-remote
|
|
|
|
|
|
|
|
[Repository Outlook-local]
|
|
|
|
type = maildir
|
|
|
|
localfolders = ~/Mail/Outlook
|
|
|
|
|
|
|
|
[Repository Outlook-remote]
|
|
|
|
type = IMAP
|
|
|
|
remoteusereval = get_user("Microsoft")
|
|
|
|
remotehost = outlook.office365.com
|
|
|
|
remoteport = 993
|
|
|
|
auth_mechanisms = XOAUTH2
|
|
|
|
oauth2_request_url = https://login.microsoftonline.com/common/oauth2/v2.0/token
|
|
|
|
oauth2_client_id = 9e5f94bc-e8a4-4e73-b8be-63364c29d753 # thunderbird's token not mine lol
|
|
|
|
oauth2_client_secret = "" # no need for this lmao
|
2024-09-24 09:45:15 +04:00
|
|
|
oauth2_refresh_token_eval = get_client_refresh_token("Microsoft")
|
|
|
|
oauth2_access_token_eval = get_client_token("Microsoft")
|