Re: Renaming a large folder?
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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.