SHARE
TWEET

Untitled

a guest Apr 2nd, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Put everything in a INBOX. subfolder except for INBOX, or any folder that starts with "INBOX" already, also translate some common hungarian foldernames
  2. [Repository Remote-X]
  3. type = IMAP
  4. remotehost = Z
  5. ssl =
  6. sslcacertfile = /etc/ssl/certs/ca-certificates.crt
  7. remoteuser = X
  8. remotepass = P
  9. createfolders = False
  10. readonly = True
  11. folderfilter = lambda folder: folder not in ['dovecot.sieve']
  12. nametrans = lambda folder: folder if folder.startswith('INBOX') else re.sub(r'^', r'INBOX.',
  13.                            re.sub('^Archive$', 'Archive',
  14.                            re.sub('^Elk&APw-ld&APY-tt elemek$','Sent',
  15.                            re.sub('^Piszkozatok$','Drafts',
  16.                            re.sub('^T&APY-r&APY-lt elemek$','Trash',
  17.                            re.sub('^Lev&AOk-lszem&AOk-t$','Spam',
  18.                            re.sub('^Junk$', 'Spam', folder)))))))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top