Complete.Org: Mailing Lists: Archives: offlineimap: April 2009:
Re: Renaming a large folder?
Home

Re: Renaming a large folder?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Jinhyok Heo <novembre@xxxxxxxxxxxxx>
Subject: Re: Renaming a large folder?
From: Loui Chang <louipc.ist@xxxxxxxxx>
Date: Tue, 7 Apr 2009 10:37:56 -0400

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.



[Prev in Thread] Current Thread [Next in Thread]