Re: Migration using imapsync

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2011-09-15 at 14:10 +0200, Mogens Melander wrote:
> Hi Guys
> 
> I realize that this is probably not a Cyrus problem, but the imapsync
> community don't strike me as responsive. And you guys know everything :)
> 
> I'm trying to move from an old uw-imap to Cyrus 2.4.8 using imapsync 1.456.
> 
> So far my main problem has been the lack off useful documentation on
> imapsync's part. Specially on the --regextrans2 parameter. I managed
> to figure that one out by 2 days of Googling and trial-error attempts.
> 
> My remaining problem is, how to create parent folders for sub folders.
> 
> The uw-imap folder structure is flat (a list of files) so i would like
> to get related stuff into a tree structure using subfolders.
> 
> I got a bunch of --regextrans2
> 
> 	--regextrans2 's#^BURAPA$#Biker Stuff/BURAPA#' \
> 	--regextrans2 's#^BikeWeek$#Biker Stuff/BikeWeek#' \
> 	--regextrans2 's#^Biker Events$#Biker Stuff/Biker Events#' \
> 	--regextrans2 's#^Hard Rock$#Biker Stuff/Hard Rock#' \
> 	--regextrans2 's#^John Daytona$#Biker Stuff/John Daytona#' \
> 
> Resulting in correct created subfolders
> 
> 	user/testuser/Biker Stuff/BURAPA@xxxxxxxxxxx (\HasNoChildren)
> 	user/testuser/Biker Stuff/BikeWeek@xxxxxxxxxxx (\HasNoChildren)
> 	user/testuser/Biker Stuff/Biker Events@xxxxxxxxxxx (\HasNoChildren)
> 	user/testuser/Biker Stuff/Hard Rock@xxxxxxxxxxx (\HasNoChildren)
> 	user/testuser/Biker Stuff/John Daytona@xxxxxxxxxxx (\HasNoChildren)
> 
> Using Squirrel Mail as client, i would like to collapse those
> folders, to only show "Biker Stuff (unread/total)".
> 
> For this to work, i need the parent folder
> 
> 	user/testuser/Biker Stuff@xxxxxxxxxxx (\HasChildren)
> 
> To be created. I can do that manually in cyradm or Squirrel Mail, but there's
> too many parent folders needed for each user to do it by hand.
> 
> Any ideas as to how this can be done. Either by imapsync or some clever script?
----
sounds like you're trying to perform surgery with a butter knife instead
of a scalpel.

Generally, imapsync would do a bulk imap to imap transfer and then users
folder structure would remain unchanged (and hopefully the seen.db would
also remain unchanged). 

Is there some blocker ? ie characters used in folder names that are not
permitted in cyrus? If so, why not use sed to change them to something
legal. Should only require a little testing.

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux