Page 1 of 1
Import User Mbox into Public Folder
Posted: Tue Jul 20, 2010 5:07 am
by Beleggrodion
Hi there
We try to move some folders from a user into a public folder without using outlook/swa. Because there are many mails it tooks some hours in outlook (and often it crashes). Export works good with sxmboxexp but now to import the stuff with sxmboximp we cannot select to force import to public folder, it only has the options to import into the same user or to specify another user for import.
Have someone an other idea?
Greetings
Roger
Re: Import User Mbox into Public Folder
Posted: Mon Jul 26, 2010 9:11 am
by BaldBoy
Of course you can.
Let's assume you have to move emails from some user's
Inbox folder to a public folder. You have to operate as follows:
- Create your Public Folder which will act as a container for your moved items. You can use webmail or Outlook to do that. Take care: target public folder should be of same type of source folder.
- Access your Scalix's server console
- Locate the folder id of the source folder (the Inbox folder for your user):
Code: Select all
sxmboxlist -u "user-name-goes-here"
You will obtain a list of folder IDs and names. Inbox folder is likely to be F-0000000001. - Do an export of Inbox's contents to a file : sxmboxexp -u "user-name-goes-here" -a nameoffile.mbox -f ID-OF-USER-FOLDER-TO-BE-EXPORTED.
- Now that you have the exported file you have to locate the ID of the Public Folder which will be the target of the import. Do a : This will give you the IDs of all configured public folders. Write down the ID of the public folder you want to import into.
- Let's go for the import phase:
Code: Select all
sxmboximp -a nameoffile.mbox -f ID-OF-USER-FOLDER-TO-BE-EXPORTED -t ID-OF-TARGET-PUBLIC-FOLDER
Of course you can export/import subfolders too or different folders in one pass. I suggest you a deep reading of man pages for sxmboxlist, sxmboxexp, sxmboximp.
Re: Import User Mbox into Public Folder
Posted: Fri Nov 26, 2010 12:41 pm
by TCWardrobe
@BaldBoy
-t ID-OF-TARGET-PUBLIC-FOLDER <<--- this is wrong (at least here), when doing this it creates a folder named "F-XXXXXXXX" in the users mailbox whose mbox is imported. Apparently it is not possible to import a user mailbox (or just a folder in it) to a public folder with sxmboximp.