rename bunch of folders [auf Viren überprüft]
Andrew Morgan
morgan at orst.edu
Wed Aug 1 12:57:12 EDT 2007
On Wed, 1 Aug 2007, Hans Moser wrote:
> Hans Moser schrieb:
>
>> Every user account here by default is created with a "Spam"-folder.
>> Now we like to rename all the users' Spam-folder to "Junk".
>> (Because Thunderbird by default uses the Junk-folder for this junk filter.)
>>
>> What is the best way to do this?
>> Has anyone a shell / perl script for this?
>>
>> If I do this outside IMAPd (i.e. by shell's mv command), I have to run
>> reconstruct to repair mailboxes.db, right?
> I was wrong here.
> If I do it this way, recontruct creates an Junk entry in mailboxes.db,
> but also recovers the (not more existing) folder Spam.
> So I have to edit mailboxes.db "by hand". :(
Don't mess around in the filesystem! Use the IMAP interface to manipulate
mailboxes. Look at the perl module Mail::IMAPClient, in particular the
"rename" function it provides.
Andy
More information about the Info-cyrus
mailing list