Exporting Email


MailStore provides several functions regarding the export of archived emails. Emails can be exported directly into server mailboxes, or to the file system as individual email files (EML or MSG format), for example.

Backup strategies (a backup of the entire archive) are discussed separately in the article Backup and Restore.

Available Export Destinations

Email Server

Email Clients

Email Files

EML files can be opened independently from MailStore by double-clicking and moving to applications such as Outlook Express via drag & drop. Outlook MSG files can be opened or archived directly with all versions of Microsoft Outlook (except Outlook Express).

Starting an Export

Using the email preview - To export an email currently displayed in the Email Preview, click on Export in the menu bar above the preview and select the export destination. A window appears in which additional settings may have to be specified.

Using the list of emails (folder contents or search results) - Highlight the emails to be exported by holding down the control key (Ctrl) and right-clicking onto the emails. Pressing Ctrl and A highlights all emails. Click Export To and select the export destination. A window appears in which additional settings may have to be specified.

Using the page "Export Email" - On this page, exporting tasks can be created and executed as export profiles (just like archiving profiles). Export profiles hold information about which emails will be exported to which destination. Each profile (i.e. the exporting task) can be executed manually or regularly according to a schedule. To learn more, please read on in the next section.

Working with Exporting Profiles

In MailStore, every exporting task is stored as an exporting profile. The exporting process is started by executing such a profile.

Such an exporting profile could contain the following information:

Creating an Export Profile

To create a new export profile, please proceed as follows:

Just like archiving profiles, already existing export profiles can be executed, edited or deleted at any time. Additional information is available in chapter Working with Archiving Profiles.

Executing an Export Profile

On the start page of MailStore Client, click on Export Email. From the list under Saved Profiles, select the profile to be executed and click on Run. After the export process has finished, a message appears containing information about any errors that may have occurred.

Automating the Export Process

With MailStore, every exporting task (every export profile) can be executed automatically according to specified points in time.

Procedure

In the next window "Schedule Task", the following settings of the planned task can be specified:

Task - Name: The task name can be chosen freely. By default, the name of the export profile and its internal MailStore ID are used.

Trigger: A time for daily execution (the task is executed once a day) or a time time interval (e.g. every 60 minutes) can be specified.

If the option Other Trigger is chosen, the exporting task is created as Windows task but execution times still have to be specified. This has to be done using the Windows task planner and is described in Windows Help. All options offered by your current Windows version can be used.

Windows Account: Specify here which user account is to be used when executing the scheduled task. The option Local System Account can be used for exports with destination Directory (File System) or CD/DVD, for example, and has the advantage that no password is required to execute the task. If the emails are to be archived from the applications of the current user (e.g. from Microsoft Outlook), the corresponding user account must be selected. In such cases, the option Local System Account is deactivated.

Log Messages - File Name: If a log file is to be created, the name for that file can be specified here. The placeholders {DATE} and {TIME} can be used in the file name which will be replaced by the actual date and time during the archiving process. If desired, the log file can also be created on a network drive.

Copy Cmd Line - By clicking this button the command line to execute this scheduled task is copied to the clipboard, so that you may paste it into batch script files. Detailed instructions can be found at the end of this chapter.

After all settings have been specified, the task can be created by clicking on OK. Confirm the following safety prompt by clicking OK again. If any account other than the Local System Account has been selected under Windows Account, the Windows password of the currently logged on user has to be entered.

A list of scheduled tasks is displayed in MailStore’s Administrative Tools, showing all tasks created on the current computer up to this point.

Managing Scheduled Tasks

Scheduled tasks created on the current computer are managed in Administrative Tools > Miscellaneous > Scheduled Tasks on .

The list shows all scheduled tasks for archiving and export processes that were created on the current computer.

Run Task: The selected task is executed immediately regardless of its scheduled runtime.

Properties: The Windows task planner is opened for the selected task; all options offered by the current Windows version can be used.

Delete Task: The selected task is deleted. This does not affect the underlying archiving profile or any of the archived emails.

Open Log Files Directory: The directory containing the protocols for the selected task is opened.

Viewing the Command Line

If desired, the export process can be incorporated into a larger procedure, such as one run by a batch file (.bat). To simplify this process, MailStore offers the option Copy Cmd Line in the Schedule Task window (see above). Click on it to view a command line that can be incorporated into the desired procedure. For example:

REM *** Microsoft Outlook (ID 77) ***

 

"C:Program FilesdeepinventMailStore ServerMailStoreCmd.exe"

--h="localhost" --pkv3="16:0e:95:b0:79:d2:e8:e0" -u="admin" --p="admin"

--o="C:ProgramDataMailStoreTaskLog77_{DATE}-{TIME}.log"

-c export-execute --id=77 --user="admin" --verbose

The command line is to be read as follows:

"...MailStoreCmd.exe" - MailStoreCmd.exe is the MailStore Management Shell. It was developed for the automated execution of certain processes in MailStore. Additional information about MailStoreCmd is available in chapter The MailStore Management Shell.

--h="localhost" - The computer name of the MailStore server to which MailStoreCmd.exe is to connect.

--pkv3="..." - Public Key Fingerprint. It ensures that the MailStore server at the time of archiving is the same as it was at the time when the scheduled task was created (optimal safety feature).

--u="admin" - User name.

--p="admin" - Password.

-c - The actual command follows (non-interactive mode).

export-execute --id=77 --user="admin" - Execute the archiving profile of user admin with the internal ID 77.

 



Article ID: 525
Created On: Wed, Jan 22, 2014 at 9:05 AM
Last Updated On: Wed, Feb 5, 2014 at 1:29 AM
Authored by: KB Admin01 [[email protected]]

Online URL: https://kb.quikbox.com/article.php?id=525