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: offlineimap@xxxxxxxxxxxx
Subject: Re: Renaming a large folder?
From: Jinhyok Heo <novembre@xxxxxxxxxxxxx>
Date: Thu, 09 Apr 2009 15:58:24 +0900

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.

-- 
Jinhyok



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