ImapExport
  1. 1. Features
  2. 2. Download
  3. 3. Source code
  4. 4. phpBB import script

When moving to my new mail server I wanted to keep all existing messages. I had IMAP access to the old mailbox so I made this small program to export all messages into a set of raw .eml files.

Features

Download

http://proger.i-forge.net/Мои проги/Delphi/ImapExport/logo.png

ImapExport (with sources), version from 8th March 2012. Tested on Windows XP, compatibility with modern Windows is unknown.

If you have problems or suggestions feel free to drop a comment below.

Updated 8.03.2013:

Source code

ImapExport is written in Delphi 7 using Indy 10 (aka Internet Direct) components. Note: Indy 9 that comes with Delphi 7 has some bugs in IMAP support so it’s not recommended to use it; Indy 10 sources are available from the official website and are easily integrated into Delphi.

phpBB import script

Shortly after the creation of this program I used it to import a lengthy discussion into a phpBB forum. First I have made a separate folder on my GMail account holding the entire conversation, then exported it into a hundred of .eml files and then ran a Ruby script that I’d written to convert them into a SQL dump (.sql file) that I have then imported into the forum’s database.

The Ruby script is available here: eml2phpBB.rb. You will need a Ruby interpreter to run it.

This script has several options-variables that are located in its beginning: