imexportmbox is a SIMS utility which allows the message store owner (usually inetmail) to copy a user's folders to a target directory. Unless the -s option is used to specify a single folder, all the user's folders are copied into the destination directory preserving any folder hierarchies in the form of directories. If the destination directory does not exist, imexportmbox will attempt to create it. If a file already exists in the destination directory, imexportmbox will not overwrite the file and will move on to the next folder.
imexportmbox must be run as the message store owner as specified in the ims.cnf file. The default owner should be set to inetmail. The destination directory must allow the message store owner write permission.
In the following example, the command will extract all email for user smith1. smith1 is a valid user account in the SIMS message store. User smith1 has three folders on the store: INBOX (the normal default user folder), Mail/flying, and Mail/Christmas. The destination directory will be /tmp/joes_mail, and it must be writable by the message store owner (inetmail). The command must be run as the message store owner.
|
|
% imexportmbox -u smith1 -d /tmp/joes_mail/
|
|
imexportmbox will then transfer each message store folder into a /var/mail conforming file. Thus you will get the following files: