imimportmbox

As the administrator, to populate your SIMS 3.5 message store with a user's existing messages and folders, you need to execute the message store utility called imimportmbox. This utility helps you to move the user's existing inbox messages and folders from existing /var/mail format to the newly installed message store.

It is possible to specify a non-existent user with imimportmbox.


Note - Run this utility as root or as the message store owner.

Syntax

 
imimportmbox [ -u user ] [ -s src_folder ] [ -d dst_folder ] [-l config_file_location]
 

The options for this command are:

-u user  

User ID  

-s src_folder  

Source folder. src_folder can be inside /var/mail, but it does not need to be.  

-d dst_folder  

Destination folder  

-l config_file_location  

Location of Message Access Services configuration file (ims.cnf). If the -l option is not specified, the default location (/etc/opt/SUNWmail/ims/) will be used.  


Examples

imimportmbox migrates the specified /var/mail/folder for the specified user to the new message store. If the destination folder is not specified, imimportmbox calls the destination folder by the same name as the source folder. In the following example, the command migrates the default /var/mail INBOX for the user smith, to the INBOX.

 
# imimportmbox -u smith -s /var/mail/smith -d INBOX
 

Similarly, if you are trying to move a folder called test from /home/smith/folders/ to the SIMS 3.5 message store, use the following command:

 
# imimportmbox -u smith -s /home/smith/folders/test -d test
 

If a destination folder called test already exists in the SIMS 3.5 message store, imimportmbox asks if you want to append to the existing folder in the mailbox or abort the move process.




Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved.