2024-09-23 11:50:35 +04:00
|
|
|
[general]
|
|
|
|
pythonfile = ~/.offlineimap.py
|
2024-11-07 16:58:18 +04:00
|
|
|
accounts = Proton, Outlook, Gmail-personal-1, Gmail-personal-2, dev, li
|
2024-09-24 19:59:17 +04:00
|
|
|
socktimeout = 60
|
2024-09-23 11:50:35 +04:00
|
|
|
|
|
|
|
[Account Proton]
|
|
|
|
localrepository = Proton-local
|
|
|
|
remoterepository = Proton-remote
|
|
|
|
|
|
|
|
[Repository Proton-local]
|
|
|
|
type = Maildir
|
2024-10-14 19:53:43 +04:00
|
|
|
localfolders = ~/.mail/protonmail
|
2024-09-23 11:50:35 +04:00
|
|
|
|
|
|
|
[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]
|
2024-09-24 10:22:42 +04:00
|
|
|
localrepository = Outlook-local
|
2024-09-24 09:38:56 +04:00
|
|
|
remoterepository = Outlook-remote
|
|
|
|
|
|
|
|
[Repository Outlook-local]
|
2024-09-24 10:22:42 +04:00
|
|
|
type = Maildir
|
2024-10-14 19:53:43 +04:00
|
|
|
localfolders = ~/.mail/outlook
|
2024-09-24 09:38:56 +04:00
|
|
|
|
|
|
|
[Repository Outlook-remote]
|
2024-09-24 10:22:42 +04:00
|
|
|
ssl = yes
|
|
|
|
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
|
2024-09-24 09:38:56 +04:00
|
|
|
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
|
2024-09-24 19:59:17 +04:00
|
|
|
# Thunderbird client_id below
|
2024-09-24 10:22:42 +04:00
|
|
|
oauth2_client_id = 9e5f94bc-e8a4-4e73-b8be-63364c29d753
|
2024-09-24 19:59:17 +04:00
|
|
|
# Do not need client_secret :D
|
2024-09-24 15:19:17 +04:00
|
|
|
oauth2_client_secret =
|
2024-09-24 09:45:15 +04:00
|
|
|
oauth2_refresh_token_eval = get_client_refresh_token("Microsoft")
|
2024-09-24 19:59:17 +04:00
|
|
|
folderfilter = lambda folder: not folder.startswith('Calendar') and not folder.startswith('Contacts')
|
|
|
|
|
|
|
|
[Account Gmail-personal-1]
|
|
|
|
localrepository = Gmail-personal-1-local
|
|
|
|
remoterepository = Gmail-personal-1-remote
|
|
|
|
|
|
|
|
[Repository Gmail-personal-1-local]
|
|
|
|
type = GmailMaildir
|
2024-10-14 19:53:43 +04:00
|
|
|
localfolders = ~/.mail/gmail1
|
2024-09-24 19:59:17 +04:00
|
|
|
# Google IMAP weirdness
|
|
|
|
nametrans = lambda f: '[Gmail]/' + f if f in ['Drafts', 'Starred', 'Important', 'Spam', 'Trash', 'All Mail', 'Sent Mail'] else f
|
|
|
|
|
|
|
|
[Repository Gmail-personal-1-remote]
|
|
|
|
ssl = yes
|
|
|
|
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
|
|
|
|
type = Gmail
|
|
|
|
remotehost = imap.gmail.com
|
|
|
|
auth_mechanisms = XOAUTH2
|
|
|
|
remoteusereval = get_user("accounts.google.com/one")
|
|
|
|
oauth2_request_url = https://accounts.google.com/o/oauth2/token
|
|
|
|
oauth2_client_id_eval = get_client_id("email/oauth/gmail")
|
|
|
|
oauth2_client_secret_eval = get_client_secret("email/oauth/gmail")
|
|
|
|
oauth2_refresh_token_eval = get_client_refresh_token("accounts.google.com/one")
|
|
|
|
# Google IMAP weirdness
|
|
|
|
nametrans = lambda f: f.replace('[Gmail]/', '') if f.startswith('[Gmail]/') else f
|
|
|
|
|
|
|
|
[Account Gmail-personal-2]
|
|
|
|
localrepository = Gmail-personal-2-local
|
|
|
|
remoterepository = Gmail-personal-2-remote
|
|
|
|
|
|
|
|
[Repository Gmail-personal-2-local]
|
|
|
|
type = GmailMaildir
|
2024-10-14 19:53:43 +04:00
|
|
|
localfolders = ~/.mail/gmail2
|
2024-09-24 19:59:17 +04:00
|
|
|
# Google IMAP weirdness
|
|
|
|
nametrans = lambda f: '[Gmail]/' + f if f in ['Drafts', 'Starred', 'Important', 'Spam', 'Trash', 'All Mail', 'Sent Mail'] else f
|
|
|
|
|
|
|
|
[Repository Gmail-personal-2-remote]
|
|
|
|
ssl = yes
|
|
|
|
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
|
|
|
|
type = Gmail
|
|
|
|
remotehost = imap.gmail.com
|
|
|
|
auth_mechanisms = XOAUTH2
|
|
|
|
remoteusereval = get_user("accounts.google.com/two")
|
|
|
|
oauth2_request_url = https://accounts.google.com/o/oauth2/token
|
|
|
|
oauth2_client_id_eval = get_client_id("email/oauth/gmail")
|
|
|
|
oauth2_client_secret_eval = get_client_secret("email/oauth/gmail")
|
|
|
|
oauth2_refresh_token_eval = get_client_refresh_token("accounts.google.com/two")
|
|
|
|
# Google IMAP weirdness
|
2024-10-09 19:27:32 +04:00
|
|
|
nametrans = lambda f: f.replace('[Gmail]/', '') if f.startswith('[Gmail]/') else f
|
|
|
|
|
2024-11-07 16:58:18 +04:00
|
|
|
[Account sako]
|
2024-11-07 17:21:39 +04:00
|
|
|
localrepository = sako-local
|
2024-11-07 17:06:06 +04:00
|
|
|
remoterepository = sako-remote
|
2024-11-07 16:58:18 +04:00
|
|
|
proxy = SOCKS5:localhost:9050
|
|
|
|
|
|
|
|
[Repository sako-local]
|
|
|
|
type = Maildir
|
|
|
|
localfolders = ~/.mail/sako
|
|
|
|
|
|
|
|
[Repository sako-remote]
|
|
|
|
type = IMAP
|
|
|
|
ssl = yes
|
|
|
|
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
|
2024-11-07 17:11:08 +04:00
|
|
|
remotehost = mail.cock.li
|
|
|
|
remoteport = 993
|
|
|
|
remoteuser = sako@cock.email
|
2024-11-07 16:58:18 +04:00
|
|
|
remotepasseval = get_pass("email/sako@cock.email")
|
|
|
|
|
2024-10-09 19:27:32 +04:00
|
|
|
[Account li]
|
|
|
|
localrepository = li-local
|
|
|
|
remoterepository = li-remote
|
|
|
|
proxy = SOCKS5:localhost:9050
|
|
|
|
|
|
|
|
[Repository li-local]
|
|
|
|
type = Maildir
|
2024-10-14 19:53:43 +04:00
|
|
|
localfolders = ~/.mail/li
|
2024-10-09 19:27:32 +04:00
|
|
|
|
|
|
|
[Repository li-remote]
|
|
|
|
type = IMAP
|
|
|
|
ssl = yes
|
|
|
|
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
|
|
|
|
remotehosteval = get_host("email/li")
|
|
|
|
remoteport = 993
|
|
|
|
remoteusereval = get_user("email/li")
|
|
|
|
remotepasseval = get_pass("email/li")
|
|
|
|
|