Help with simple nametrans

Chris Dennis cgdennis at btinternet.com
Sat Jan 14 14:55:27 UTC 2012


On 14/01/12 11:36, Chris Dennis wrote:
> Hello Offlineimap people
>
> I don't speak Python, and I can't find a simple example of a nametrans
> that doesn't use regular expressions.
>
> I'm syncing between a remote server that puts junk in a folder called
> 'Spam', and a local one where junk is called 'Junk E-mail'.
>
> So I just want to translate 'Spam' to 'Junk E-mail' and back again.
>
> Could somebody kindly come up with the relevant nametrans incantation
> for me?

OK, I've worked out the Python syntax, so ignore that question.

I'll probably have some more questions about nametrans later though.

cheers

Chris



More information about the OfflineIMAP-project mailing list