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 ---- Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html