Some years ago Microsoft released Live mail. A light weight mail client available via the essentials update. Years later companies are still using the Windows Live Mail dispite unable to download the software anymore and no updates available. 

The Problem

The problem with Live Mail is it didnt export it’s mail very well so migrating it into anything else is quite difficult but not impossible. 

Saving Grace 

Luckily for people who want to move from Live Mail to a different mail system such as Office 365, Live Mail saves its email as .eml files in a full folder structure 

The Fix

To import the emails into Office 365, you can use 2 files which are available from https://www.howto-outlook.com/howto/import-eml-files.htm#redemption

 

See Instructions as below:

Important!
Verify that Outlook is set as the default application to open eml-files on your computer before running the script.

 

  1. Download script files; importemlfiles.zip
  2. Open or extract the zip-file and double click on; import-eml.vbs
  3. Select the folder containing the eml-files that you want to import.Select the folder containing eml-files.
  4. Select the Outlook folder you want to import the eml-files into.Select Outlook folder for eml import.
    • Note:
      The Outlook folder selection dialog may load in the background. When it does, select Outlook on the Task Bar and, if needed, cycle through your open Outlook windows to find it. It is usually the one that you viewed last.
  5. Important! Once you’ve selected the folder, do not provide any further input via your mouse, keyboard, touch, pen, or any other method. As said before, Outlook needs to open these message visually and changing focus will interrupt the script; Simply wait for the “Import completed.” dialog.Import eml completed.
Dim objShell : Set objShell = CreateObject("Shell.Application")
Dim objFolder : Set objFolder = objShell.BrowseForFolder(0, "Select the folder containing eml-files", 0)

Dim Item
If (NOT objFolder is Nothing) Then
  Set WShell = CreateObject("WScript.Shell")
  Set objOutlook = CreateObject("Outlook.Application")
  Set Folder = objOutlook.Session.PickFolder
  If NOT Folder Is Nothing Then
    For Each Item in objFolder.Items
      If Right(Item.Name, 4) = ".eml" AND Item.IsFolder = False Then
	objShell.ShellExecute Item.Path, "", "", "open", 1
	WScript.Sleep 1000
	Set MyInspector = objOutlook.ActiveInspector
	Set MyItem = objOutlook.ActiveInspector.CurrentItem
	MyItem.Move Folder
      End If
    Next
  End If
End If

MsgBox "Import completed.", 64, "Import EML"

Set objFolder = Nothing
Set objShell = Nothing

VBS code to import eml-files into Outlook.

Note:
Depending on the responsiveness of your computer and the amount of add-ins that you have installed in Outlook, you could reduce the waiting period to speed up the import process or increase the value behind WScript.Sleep to make it more reliable by giving Outlook more time to load. When the message doesn’t get enough time to load, the script will fail.

Redemption importing script (fast)

VBS Script buttonThe Redemption script provides the same interface as the native script but relies on the (free) Redemption scripting library which allows you to import the messages via background process. The Redemption scripting library is created and maintained by fellow Outlook MVP Dmitry Streblechenko who created it to simplify various programmatic scenarios for Outlook.

This means that there is no need to open the messages visually, no need to add or tweak a Sleep statement, nor do you have to leave your computer idle to prevent interrupting the script. The added benefit of this is that it is much (much!) faster and reliable.

The only downside is that you need to install the Redemption scripting library which may be an issue on locked down (corporate) computers. If you are in this situation, see the note at the bottom for a possible workaround.

  1. Download script files; importemlfiles.zip
  2. Extract the file.
  3. Click here to go to the Redemption website and download and install Redemption;
    1. Download the Developer version which can be used for free.
    2. Extract the Redemption.zip file and double click on Install.exe.
    3. Follow the instructions to install Redemption. Accepting the defaults is fine.Install Redemption
  4. Return to the location where you extracted the script files in step 2 and double click on import-eml-rdo.vbs
  5. Select the folder containing the eml-files that you want to import.Select the folder containing eml-files.
  6. Select the Outlook folder you want to import the eml-files into.Select Outlook folder for eml import.
    • Note:
      The Outlook folder selection dialog may load in the background. When it does, select Outlook on the Task Bar and, if needed, cycle through your open Outlook windows to find it. It is usually the one that you viewed last.
  7. Simply wait for the “Import completed.” dialog.Import eml completed.

 

Instructions taken from https://www.howto-outlook.com/howto/import-eml-files.htm#redemption