<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>mailstore-notes.dwlab.me - outdated version</title>
    <link rel="self" type="application/atom+xml" href="https://mailstore-notes.dwlab.me/tags/outdated-version/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://mailstore-notes.dwlab.me/"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2024-08-02T00:00:00+00:00</updated>
    <id>https://mailstore-notes.dwlab.me/tags/outdated-version/atom.xml</id>
    <entry xml:lang="en">
        <title>EML Export from Storage Location in MailStore &lt;11</title>
        <published>2024-08-02T00:00:00+00:00</published>
        <updated>2024-08-02T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              dave
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://mailstore-notes.dwlab.me/articles/eml-export-from-mailstore-pre-11/"/>
        <id>https://mailstore-notes.dwlab.me/articles/eml-export-from-mailstore-pre-11/</id>
        
        <content type="html" xml:base="https://mailstore-notes.dwlab.me/articles/eml-export-from-mailstore-pre-11/">&lt;p&gt;Storage Locations created in MailStore 10 or earlier can be exported to &lt;em&gt;EML&lt;&#x2F;em&gt; files using the internal metadata. This is useful if the database is corrupt and cannot be repaired, as the &lt;em&gt;EML&lt;&#x2F;em&gt; files can be used to re-archive the messages into a new storage location.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;This article applies to MailStore 10 and earlier &lt;em&gt;only&lt;&#x2F;em&gt;, as of MailStore 11 an entirely different process is used for recovering from a damaged FDB database.&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a class=&quot;&quot; rel=&quot;noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https:&#x2F;&#x2F;www.mailstore.com&#x2F;en&#x2F;products&#x2F;mailstore-server&#x2F;changelog&#x2F;#mailstore-server-11-0&quot;&gt;MailStore 11&lt;&#x2F;a&gt; introduced new recovery records, this article only applies to Storage Locations created with MailStore 10 or earlier, that have not been upgraded to MailStore 11 or later.&lt;&#x2F;p&gt;
&lt;p&gt;If you have a damaged MailStore Storage Location&#x27;s FDB file (&lt;em&gt;prior to MailStore 11&lt;&#x2F;em&gt;), it is often possible to recover and export the messages from the database using the internal recovery records.&lt;&#x2F;p&gt;
&lt;p&gt;For the purposes of this article, we will assume the following paths:&lt;&#x2F;p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;description&lt;&#x2F;th&gt;&lt;th&gt;example path&lt;&#x2F;th&gt;&lt;&#x2F;tr&gt;&lt;&#x2F;thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Damaged Storage Location&lt;&#x2F;td&gt;&lt;td&gt;&lt;code&gt;C:\MailArchive\2018-03&lt;&#x2F;code&gt;&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;EML export destination&lt;&#x2F;td&gt;&lt;td&gt;&lt;code&gt;D:\EML&lt;&#x2F;code&gt;&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;&#x2F;tbody&gt;&lt;&#x2F;table&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Prepare the environment:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Avoid using network drives for storing files.&lt;&#x2F;li&gt;
&lt;li&gt;Use locally mounted drives (ideally SAS, NVMe, SATA, or iSCSI). Avoid external storage such as USB drives and network paths.&lt;&#x2F;li&gt;
&lt;li&gt;For performance reasons, consider placing the Storage Location and EML export destination on separate physical drives.&lt;&#x2F;li&gt;
&lt;li&gt;Ensure you have ample free space. It&#x27;s recommended to have at least double the size of the corrupted storage location available, but more may be needed in certain cases.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Prepare MailStore Server:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;If you have any &lt;em&gt;Archive E-mail&lt;&#x2F;em&gt; profiles configured to run automatically they may re-archive messages from the original source, so it is recommended to disable all archiving profiles during this process.&lt;&#x2F;li&gt;
&lt;li&gt;Shut down MailStore Server completely or detach the problematic storage location to ensure it&#x27;s not in a failed state.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Run the Recovery Command:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Launch a Windows command prompt, enter the following command, substituting paths as necessary:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;cmd.exe&quot; class=&quot;language-cmd.exe &quot;&gt;&lt;code class=&quot;language-cmd.exe&quot; data-lang=&quot;cmd.exe&quot;&gt;&amp;quot;C:\Program Files (x86)\deepinvent\MailStore Server\MailStoreServer_x64.exe&amp;quot; --recover --inputDir=&amp;quot;C:\MailArchive\2018-03&amp;quot; --outputDir=&amp;quot;D:\EML&amp;quot;
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Wait for MailStore to process all &lt;em&gt;DAT&lt;&#x2F;em&gt; files, extracting each to &lt;em&gt;EML&lt;&#x2F;em&gt; files.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Re-Archiving Process:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;(Optional)&lt;&#x2F;em&gt; Create a new Storage Location (&lt;em&gt;MailStore Client&lt;&#x2F;em&gt; &amp;gt; &lt;em&gt;Administrative Tools&lt;&#x2F;em&gt; &amp;gt; &lt;em&gt;Storage&lt;&#x2F;em&gt; &amp;gt; &lt;em&gt;Storage Locations&lt;&#x2F;em&gt; &amp;gt; &lt;em&gt;Create Storage Location&lt;&#x2F;em&gt;).&lt;&#x2F;li&gt;
&lt;li&gt;Go to &lt;em&gt;Archive E-mail&lt;&#x2F;em&gt; &amp;gt; Create a new profile, select &lt;em&gt;EML and MSG Files&lt;&#x2F;em&gt; (or &lt;em&gt;Directory (File System)&lt;&#x2F;em&gt;) files as the source.&lt;&#x2F;li&gt;
&lt;li&gt;Choose the &lt;em&gt;MailStore Export&lt;&#x2F;em&gt; option to re-archive the messages back to their correct location.&lt;&#x2F;li&gt;
&lt;li&gt;Ensure the corrupted storage location is not attached during this process otherwise messages may be skipped.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Post-Recovery Cleanup:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Once you verify the results, delete the corrupt storage location and the EML export destination. directory.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;The extracted &lt;em&gt;EML&lt;&#x2F;em&gt; files can be used with email software that supports EML format, or MailStore itself.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;encryption-keys&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#encryption-keys&quot; aria-label=&quot;Anchor link for: encryption-keys&quot;&gt;🔗&lt;&#x2F;a&gt;Encryption Keys&lt;&#x2F;h2&gt;
&lt;p&gt;MailStore will attempt to read the keys from the &lt;em&gt;FDB&lt;&#x2F;em&gt; database files on disk if not specified, but if the database is corrupt it may not be possible to retrieve the keys automatically.&lt;&#x2F;p&gt;
&lt;p&gt;You can add the &lt;code&gt;--securityKey&lt;&#x2F;code&gt; and&#x2F;or  &lt;code&gt;--masterKey&lt;&#x2F;code&gt; parameters to the command line to specify the security and master keys as needed. Please contact support if you need assistance retrieving the keys as this process varies depending on the version of MailStore (and may not be possible in all cases).&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;cmd.exe&quot; class=&quot;language-cmd.exe &quot;&gt;&lt;code class=&quot;language-cmd.exe&quot; data-lang=&quot;cmd.exe&quot;&gt;MailStoreServer.exe --recover
     --inputDir=&amp;quot;C:\FileGroup1&amp;quot;
     --outputDir=&amp;quot;D:\EML&amp;quot;
    [--securityKey=&amp;quot;...&amp;quot;]
    [--masterKey=&amp;quot;...&amp;quot;]
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h2 id=&quot;notes&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#notes&quot; aria-label=&quot;Anchor link for: notes&quot;&gt;🔗&lt;&#x2F;a&gt;Notes&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;EML&lt;&#x2F;em&gt; files are created with &lt;code&gt;X-MailStore-*&lt;&#x2F;code&gt; headers that contain metadata to allow for re-archiving or other analysis.&lt;&#x2F;li&gt;
&lt;li&gt;&lt;em&gt;EML&lt;&#x2F;em&gt; files can be:
&lt;ul&gt;
&lt;li&gt;Re-archived into the correct location in MailStore.&lt;&#x2F;li&gt;
&lt;li&gt;Opened and accessed by any email software that supports &lt;em&gt;EML&lt;&#x2F;em&gt; files, like Thunderbird.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;&lt;em&gt;DAT&lt;&#x2F;em&gt; files contain fragments from various messages.&lt;&#x2F;li&gt;
&lt;li&gt;Messages in &lt;em&gt;DAT&lt;&#x2F;em&gt; files are not always in sequential order.&lt;&#x2F;li&gt;
&lt;li&gt;You may attempt to perform an export on an incomplete set of &lt;em&gt;DAT&lt;&#x2F;em&gt; files, only valid messages will be exported.&lt;&#x2F;li&gt;
&lt;li&gt;You may restore or replace &lt;em&gt;DAT&lt;&#x2F;em&gt; files and then export again to fill in missing messages if further &lt;em&gt;DAT&lt;&#x2F;em&gt; files are available.&lt;&#x2F;li&gt;
&lt;li&gt;Exporting again will create duplicate &lt;em&gt;EML&lt;&#x2F;em&gt; files, but these will be skipped by MailStore when re-archiving.&lt;&#x2F;li&gt;
&lt;li&gt;Special Case:
&lt;ul&gt;
&lt;li&gt;Storage Locations created in MailStore 10 or earlier, but with messages added by MailStore 11, may not export completely with this process.&lt;&#x2F;li&gt;
&lt;li&gt;In such cases, contact MailStore support for assistance.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
</content>
        
    </entry>
</feed>
