Working 6.3.4 config breaks in 6.5.2.1

Daniel Shahaf d.s at daniel.shahaf.name
Mon Feb 13 16:00:26 GMT 2012


Sebastian Spaeth wrote on Mon, Feb 13, 2012 at 14:47:59 +0100:
> On Fri, 10 Feb 2012 14:11:41 +0100, Michael Williams wrote:
> > [Repository remotempe]
> > nametrans = lambda foldername: re.sub('^INBOX.', '', foldername)
> 
> So your remote repository cuts off the initial INBOX., you'll need to
> append them from your local repository so that offlineimap is able to
> find the corresponding mapping (nametrans is one-way only...)
> 
> I'd suggest something like:
> 
> [Repository localmpe]
> type = Maildir
> localfolders = ~/.mail/mpe
> nametrans = lambda folder: "INBOX." + folder
> 
> Would that work for you?
> 

It'll break when the remote folder name is "INBOX".

nametrans = lambda f: ["INBOX."+f, f][f == "INBOX"]



> _______________________________________________
> OfflineIMAP-project mailing list
> OfflineIMAP-project at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/offlineimap-project
> 
> OfflineIMAP homepage: http://software.complete.org/offlineimap





More information about the OfflineIMAP-project mailing list