Created
January 22, 2021 10:41
-
-
Save benjaminpreiss/9028cdd70d8ce76924765c169b11a142 to your computer and use it in GitHub Desktop.
offlineimap_to_server2.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sample minimal config file. Copy this to ~/.offlineimaprc and edit to | |
# get started fast. | |
[general] | |
accounts = Account1,Account2,Account3 | |
maxsyncaccounts = 1 | |
ui = TTYUI | |
[Account Account1] | |
maildir-windows-compatible = no | |
localrepository = LocalAccount1 | |
remoterepository = RemoteAccount1 | |
[Repository LocalAccount1] | |
type = Maildir | |
localfolders = ~/linux-files-wsl/Account1 | |
sync_deletes = no | |
readonly = True | |
nametrans = lambda foldername: 'Account/' + re.sub ('^Sent Messages$', 'Sent', | |
re.sub ('^Sent Messages\.', 'Sent/', | |
re.sub ('^Gesendete Objekte$', 'Sent', | |
re.sub ('^Gesendete Objekte\.', 'Sent/', | |
re.sub ('^Papierkorb$', 'Trash', | |
re.sub ('^Papierkorb\.', 'Trash/', | |
re.sub ('^Deleted Messages$', 'Trash', | |
re.sub ('^Deleted Messages\.', 'Trash', | |
re.sub ('^Entw&APw-rfe$', 'Drafts', | |
re.sub ('^Entw&APw-rfe\.', 'Drafts/', | |
re.sub ('^Spam$', 'Junk', | |
re.sub ('^Spam\.', 'Junk/', | |
re.sub ('^Junk-E-Mail$', 'Junk', | |
re.sub ('^Junk-E-Mail\.', 'Junk/', | |
foldername)))))))))))))) | |
dynamic_folderfilter = True | |
[Repository RemoteAccount1] | |
type = IMAP | |
starttls = yes | |
ssl = yes | |
#sslclientcert = /path/to/file.crt | |
#sslclientkey = /path/to/file.key | |
sslcacertfile = /etc/ssl/certs/**** | |
#cert_fingerprint = <SHAn_of_server_certificate_here>[, <another_SHAm>] | |
remoteport = 993 | |
remotehost = ***** | |
remoteuser = ****** | |
remotepass = ***** | |
auth_mechanisms = GSSAPI, XOAUTH2, CRAM-MD5, PLAIN, LOGIN | |
expunge = no | |
readonly = False | |
nametrans = lambda foldername: re.sub ('^Sent', 'Gesendete Objekte', | |
re.sub ('^Trash', 'Papierkorb', | |
re.sub ('^Drafts', 'Entw&APw-rfe', | |
re.sub ('^Junk', 'Spam', | |
foldername)))) | |
folderfilter = lambda foldername: not re.search('(^Account|^Gesendete Objekte|^Papierkorb|^Entw&APw-rfe|^Spam)', foldername) | |
[Account Account2] | |
maildir-windows-compatible = no | |
localrepository = LocalAccount2 | |
remoterepository = RemoteAccount2 | |
[Repository LocalAccount2] | |
type = Maildir | |
localfolders = ~/linux-files-wsl/Account2 | |
sync_deletes = no | |
readonly = True | |
nametrans = lambda foldername: re.sub ('^Sent Messages$', 'Sent', | |
re.sub ('^Sent Messages\.', 'Sent/', | |
re.sub ('^Gesendete Objekte$', 'Sent', | |
re.sub ('^Gesendete Objekte\.', 'Sent/', | |
re.sub ('^Papierkorb$', 'Trash', | |
re.sub ('^Papierkorb\.', 'Trash/', | |
re.sub ('^Deleted Messages$', 'Trash', | |
re.sub ('^Deleted Messages\.', 'Trash', | |
re.sub ('^Papierkorb\.', 'Trash/', | |
re.sub ('^Entw&APw-rfe$', 'Drafts', | |
re.sub ('^Entw&APw-rfe\.', 'Drafts/', | |
re.sub ('^Spam$', 'Junk', | |
re.sub ('^Spam\.', 'Junk/', | |
re.sub ('^Junk-E-Mail$', 'Junk', | |
re.sub ('^Junk-E-Mail\.', 'Junk/', | |
foldername))))))))))))))) | |
dynamic_folderfilter = True | |
[Repository RemoteAccount2] | |
type = IMAP | |
starttls = yes | |
ssl = yes | |
#sslclientcert = /path/to/file.crt | |
#sslclientkey = /path/to/file.key | |
sslcacertfile = /etc/ssl/certs/**** | |
#cert_fingerprint = <SHAn_of_server_certificate_here>[, <another_SHAm>] | |
remoteport = 993 | |
remotehost = **** | |
remoteuser = ***** | |
remotepass = ***** | |
auth_mechanisms = GSSAPI, XOAUTH2, CRAM-MD5, PLAIN, LOGIN | |
expunge = no | |
readonly = False | |
nametrans = lambda foldername: re.sub ('^Sent', 'Gesendete Objekte', | |
re.sub ('^Trash', 'Papierkorb', | |
re.sub ('^Drafts', 'Entw&APw-rfe', | |
re.sub ('^Junk', 'Spam', | |
foldername)))) | |
folderfilter = lambda foldername: not re.search('(^Gesendete Objekte|^Papierkorb|^Entw&APw-rfe|^Spam)', foldername) | |
[Account Account3] | |
maildir-windows-compatible = no | |
localrepository = LocalAccount3 | |
remoterepository = RemoteAccount3 | |
[Repository LocalAccount3] | |
type = Maildir | |
localfolders = ~/linux-files-wsl/Account3 | |
sync_deletes = no | |
readonly = True | |
nametrans = lambda foldername: re.sub ('^Sent Messages$', 'Sent', | |
re.sub ('^Sent Messages\.', 'Sent/', | |
re.sub ('^Gesendete Objekte$', 'Sent', | |
re.sub ('^Gesendete Objekte\.', 'Sent/', | |
re.sub ('^Papierkorb$', 'Trash', | |
re.sub ('^Papierkorb\.', 'Trash/', | |
re.sub ('^Deleted Messages$', 'Trash', | |
re.sub ('^Deleted Messages\.', 'Trash', | |
re.sub ('^Papierkorb\.', 'Trash/', | |
re.sub ('^Entw&APw-rfe$', 'Drafts', | |
re.sub ('^Entw&APw-rfe\.', 'Drafts/', | |
re.sub ('^Spam$', 'Junk', | |
re.sub ('^Spam\.', 'Junk/', | |
re.sub ('^Junk-E-Mail$', 'Junk', | |
re.sub ('^Junk-E-Mail\.', 'Junk/', | |
foldername))))))))))))))) | |
dynamic_folderfilter = True | |
[Repository RemoteAccount3] | |
type = IMAP | |
starttls = yes | |
ssl = yes | |
#sslclientcert = /path/to/file.crt | |
#sslclientkey = /path/to/file.key | |
sslcacertfile = /etc/ssl/certs/***** | |
#cert_fingerprint = <SHAn_of_server_certificate_here>[, <another_SHAm>] | |
remoteport = 993 | |
remotehost = ***** | |
remoteuser = ***** | |
remotepass = ***** | |
auth_mechanisms = GSSAPI, XOAUTH2, CRAM-MD5, PLAIN, LOGIN | |
expunge = no | |
readonly = False | |
nametrans = lambda foldername: re.sub ('^Sent', 'Gesendete Objekte', | |
re.sub ('^Trash', 'Papierkorb', | |
re.sub ('^Drafts', 'Entw&APw-rfe', | |
re.sub ('^Junk', 'Spam', | |
foldername)))) | |
folderfilter = lambda foldername: not re.search('(^Gesendete Objekte|^Papierkorb|^Entw&APw-rfe|^Spam)', foldername) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment