Help with nametrans

Nicolas Sebrecht nicolas.s-dev at laposte.net
Thu Jul 7 23:55:58 BST 2016


On Thu, Jul 07, 2016 at 07:59:29PM +0000, Wojtek wrote:
> 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.

Above conf should be fine. See 

  http://www.offlineimap.org/doc/nametrans.html

> 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?

This is a GPG issue. I think GPG-Agent is what you're looking for.

-- 
Nicolas Sebrecht




More information about the OfflineIMAP-project mailing list