Help with nametrans

Wojtek wojciech.zuk at gmail.com
Thu Jul 7 20:59:29 BST 2016


Hi,
I'm trying to configure offline imap so my one folder on remote (Gmail) 
will be synced on other folder name on other IMAP server, but I don't 
know how to do this, here is my config:

[general]
maxsyncaccounts = 5
pythonfile = ~/.offlineimap.py
accounts = WP

[Account WP]
localrepository = WPlocal
remoterepository = Gmail


[Repository WPlocal]
autorefresh = 5
type = IMAP
remotehost = imap.wp.pl
remoteport = 993
ssl = yes
createfolders = false
remoteuser = 
remotepasseval = get_pass()
folderfilter = lambda folder: folder == 'Test'

[Repository Gmail]
autorefresh = 5
type = Gmail
ssl = yes
createfolders = false
folderfilter = lambda folder: folder == '[testwpimap]/Wys&AUI-ane'
remotehost = imap.gmail.com
remoteuser = 
remotepasseval = get_pass()
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
nametrans = lambda folder: re.sub('[testwpimap]/Wys&AUI-ane', 'Test', 
folder)

All I want to do is Folder "[testwpimap]/Wys&AUI-ane" on remote Gmail 
should Sync as folder "Test" on Local.

My second question every time I run offlineimap Linux ask me for 
password for my key certificate GPG, and I would put offlineimap in cron 
in the future is any way to ommit this ask for credentials?






More information about the OfflineIMAP-project mailing list