Skip to content

Instantly share code, notes, and snippets.

@benjaminpreiss
Created January 22, 2021 12:53
Show Gist options
  • Save benjaminpreiss/67f01d8dcc696a552400eee1914f27c7 to your computer and use it in GitHub Desktop.
Save benjaminpreiss/67f01d8dcc696a552400eee1914f27c7 to your computer and use it in GitHub Desktop.
OfflineIMAP 7.2.3
Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
imaplib2 v2.57 (system), Python v2.7.16, OpenSSL 1.1.1d 10 Sep 2019
imaplib2: 2.57 (system)
Remote repository 'RemoteAccount1': type 'IMAP'
Host: ******** Port: 993 SSL: True
Establishing connection to ********:993 (RemoteAccount1)
Server supports ID extension.
Server welcome string: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE UIDPLUS LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
Server capabilities: ('IMAP4REV1', 'SASL-IR', 'LOGIN-REFERRALS', 'ID', 'ENABLE', 'IDLE', 'SORT', 'SORT=DISPLAY', 'THREAD=REFERENCES', 'THREAD=REFS', 'THREAD=ORDEREDSUBJECT', 'MULTIAPPEND', 'URL-PARTIAL', 'CATENATE', 'UNSELECT', 'CHILDREN', 'NAMESPACE', 'UIDPLUS', 'LIST-EXTENDED', 'I18NLEVEL=1', 'CONDSTORE', 'QRESYNC', 'ESEARCH', 'ESORT', 'SEARCHRES', 'WITHIN', 'CONTEXT=SEARCH', 'LIST-STATUS', 'BINARY', 'MOVE', 'SNIPPET=FUZZY', 'PREVIEW=FUZZY', 'STATUS=SIZE', 'SAVEDATE', 'SEARCH=X-MIMEPART', 'XDOVECOT', 'ACL', 'UIDPLUS', 'LITERAL+', 'NOTIFY', 'SPECIAL-USE', 'FILTER=SIEVE', 'COMPRESS=DEFLATE', 'XAPPLEPUSHSERVICE', 'QUOTA', 'ACL', 'RIGHTS=TEXK')
folderfilter= lambda foldername: not re.search('(^Account|^Gesendete Objekte|^Papierkorb|^Entw&APw-rfe|^Spam)', foldername)
nametrans= lambda foldername: re.sub ('^Sent', 'Gesendete Objekte',
re.sub ('^Trash', 'Papierkorb',
re.sub ('^Drafts', 'Entw&APw-rfe',
re.sub ('^Junk', 'Spam',
foldername))))
Folderlist:
Drafts -> Entw&APw-rfe
Sent -> Gesendete Objekte
INBOX
Trash -> Papierkorb
Junk -> Spam
Local repository 'LocalAccount1': type 'Maildir'
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))))))))))))))
Folderlist:
Gesendete Elemente -> Account/Gesendete Elemente
Entw&APw-rfe -> Account/Drafts
Papierkorb -> Account/Trash
Gesendete Objekte -> Account/Sent
INBOX -> Account/INBOX
Junk-E-Mail -> Account/Junk
Spam -> Account/Junk
Remote repository 'RemoteAccount2': type 'IMAP'
Host: ******** Port: 993 SSL: True
Establishing connection to ********:993 (RemoteAccount2)
Server supports ID extension.
Server welcome string: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE UIDPLUS LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
Server capabilities: ('IMAP4REV1', 'SASL-IR', 'LOGIN-REFERRALS', 'ID', 'ENABLE', 'IDLE', 'SORT', 'SORT=DISPLAY', 'THREAD=REFERENCES', 'THREAD=REFS', 'THREAD=ORDEREDSUBJECT', 'MULTIAPPEND', 'URL-PARTIAL', 'CATENATE', 'UNSELECT', 'CHILDREN', 'NAMESPACE', 'UIDPLUS', 'LIST-EXTENDED', 'I18NLEVEL=1', 'CONDSTORE', 'QRESYNC', 'ESEARCH', 'ESORT', 'SEARCHRES', 'WITHIN', 'CONTEXT=SEARCH', 'LIST-STATUS', 'BINARY', 'MOVE', 'SNIPPET=FUZZY', 'PREVIEW=FUZZY', 'STATUS=SIZE', 'SAVEDATE', 'SEARCH=X-MIMEPART', 'XDOVECOT', 'ACL', 'UIDPLUS', 'LITERAL+', 'NOTIFY', 'SPECIAL-USE', 'FILTER=SIEVE', 'COMPRESS=DEFLATE', 'XAPPLEPUSHSERVICE', 'QUOTA', 'ACL', 'RIGHTS=TEXK')
folderfilter= lambda foldername: not re.search('(^Gesendete Objekte|^Papierkorb|^Entw&APw-rfe|^Spam)', foldername)
nametrans= lambda foldername: re.sub ('^Sent', 'Gesendete Objekte',
re.sub ('^Trash', 'Papierkorb',
re.sub ('^Drafts', 'Entw&APw-rfe',
re.sub ('^Junk', 'Spam',
foldername))))
Folderlist:
Drafts -> Entw&APw-rfe
Sent -> Gesendete Objekte
INBOX
Trash -> Papierkorb
Junk -> Spam
Local repository 'LocalAccount2': type 'Maildir'
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)))))))))))))))
Folderlist:
Archiv.2018
Archiv.2019
Entw&APw-rfe -> Drafts
Archiv
Papierkorb -> Trash
Archiv.2020
Gesendete Objekte -> Sent
INBOX
Spam -> Junk
Basis
Remote repository 'RemoteAccount3': type 'IMAP'
Host: ******** Port: 993 SSL: True
Establishing connection to ********:993 (RemoteAccount3)
Server supports ID extension.
Server welcome string: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE UIDPLUS LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
Server capabilities: ('IMAP4REV1', 'SASL-IR', 'LOGIN-REFERRALS', 'ID', 'ENABLE', 'IDLE', 'SORT', 'SORT=DISPLAY', 'THREAD=REFERENCES', 'THREAD=REFS', 'THREAD=ORDEREDSUBJECT', 'MULTIAPPEND', 'URL-PARTIAL', 'CATENATE', 'UNSELECT', 'CHILDREN', 'NAMESPACE', 'UIDPLUS', 'LIST-EXTENDED', 'I18NLEVEL=1', 'CONDSTORE', 'QRESYNC', 'ESEARCH', 'ESORT', 'SEARCHRES', 'WITHIN', 'CONTEXT=SEARCH', 'LIST-STATUS', 'BINARY', 'MOVE', 'SNIPPET=FUZZY', 'PREVIEW=FUZZY', 'STATUS=SIZE', 'SAVEDATE', 'SEARCH=X-MIMEPART', 'XDOVECOT', 'ACL', 'UIDPLUS', 'LITERAL+', 'NOTIFY', 'SPECIAL-USE', 'FILTER=SIEVE', 'COMPRESS=DEFLATE', 'XAPPLEPUSHSERVICE', 'QUOTA', 'ACL', 'RIGHTS=TEXK')
folderfilter= lambda foldername: not re.search('(^Gesendete Objekte|^Papierkorb|^Entw&APw-rfe|^Spam)', foldername)
nametrans= lambda foldername: re.sub ('^Sent', 'Gesendete Objekte',
re.sub ('^Trash', 'Papierkorb',
re.sub ('^Drafts', 'Entw&APw-rfe',
re.sub ('^Junk', 'Spam',
foldername))))
Folderlist:
Drafts -> Entw&APw-rfe
Sent -> Gesendete Objekte
INBOX
Trash -> Papierkorb
Junk -> Spam
Local repository 'LocalAccount3': type 'Maildir'
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)))))))))))))))
Folderlist:
Gefundene Objekte
Entw&APw-rfe -> Drafts
Papierkorb -> Trash
Deleted Messages -> Trash
Gesendete Objekte -> Sent
INBOX
Junk-E-Mail -> Junk
Spam -> Junk
Drafts
Sent Messages -> Sent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment