<DKIM> nametrans and lambda function
Andrej Rode
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
pathsubs somewhere?
Cheers,
Andrej
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20170121/5706b5ee/attachment-0003.sig>
More information about the OfflineIMAP-project
mailing list