In the following example, imsexport extracts all email for user smith1. smith1 is a valid user account in the Sun Java System Messaging Server message store. User smith1 has three folders on the store: INBOX (the normal default user folder), private, and private/mom. The destination directory will be /tmp/joes_mail.
% imsexport -u smith1 -d /tmp/joes_mail/
imexport then transfers each message store folder into a /var/mail conforming file. Thus you will get the following files: