View Single Post
  #1 (permalink)  
Old 03-23-2008, 09:47 AM
Rich Graves Rich Graves is offline
Outstanding Member
 
Posts: 708
Default Move items between folders with zmmailbox?

Due to Bug 25828 - GroupWise: Shared addressbooks get migrated to user's Contacts and Bug 26100 - Migration wizards need to avoid creating sub-calendars I have a general need to move lots and lots of items between folders for lots of users. Renaming of /Calendar/Subcalendar folders created by zcsgwmigwiz appears not to work, and I can't rename /Randomfolder to /Contacts because the latter already exists and can't be deleted.

I see a zmmailbox moveItem, but I don't see an obvious way to "move all items from folder A to folder B."

Is parsing the output of search -t contact -l 1000000 'in:Folder' really the best way to do it? I could write some horrible shell or perl to accomplish that, but I'd worry about proper screen-scraping. I'm not a real SOAP programmer so I'd like to avoid that.
Reply With Quote