<DKIM> nametrans and lambda function
mail at andrejro.de
Sun Jan 22 03:11:34 GMT 2017
> > > Here are the key settings about the problem from my offlineimap configuration:
> > > folderfilter = lambda foldername: foldername in [ '[Gmail]/Sent Mail' ]
> > > nametrans = lambda folder: pathsubs( folder_r = folder )
> > nametrans = pathsubs(folder)
> are you sure this is a possibility??
> I had tried it previously, it was so worse ...
> That's really strange, don't you have a working example of nametrans?
With latest offlineimap this works:
nametrans = lambda folder: re.sub('!', '.', folder[1:])
Instead of doing re.sub I could also call some other random function in
my namespace. So your first configuration should work as well. Maybe you have an error in your
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 801 bytes
Desc: Digital signature
More information about the OfflineIMAP-project