Re: Renaming a large folder?
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Loui Chang <louipc.ist@xxxxxxxxx> writes:
> On Tue, Apr 07, 2009 at 11:11:24PM +0900, Jinhyok Heo wrote:
>> Hi all,
>> Is there a way to rename a folder? If I change the name of a folder,
>> offlineimap deletes all mails in original folder and downloads all again
>> in renamed folder. Sometimes it is a pain to change the name of a large
>> folder. I guess there might be a way by tweaking ~/.offlineimap folder.
> You could do it via nametrans in offlineimaprc.
> nametrans = lambda foldername: re.sub('^oldname$', 'newname', foldername)
> See the example config for more explanation.
Thanks for your solution, but that is not what I am looking for. With
nametrans, I should keep making and maintaining nametrans rules whenever
I change the name of a folder. I want to find a way to reflect the
change of a folder name.