Install Evolution
Open Evolution one time and then close it

Configure the Exchange account with your account informations on the Windows domain with the command : ximian-connector-setup-2.x (x being the Evolution version you’re using).
Download the scritp provided with this post.
Modify the script following the instruction provided by the comments in it.
Execute the script you’ve downloaded.
Open Evolution, right-click one by one the newly imported folders from thunderbird and then select move, select the your exchange’s personnal folder.

The code for the migration script : Copy, paste in a bash script file (.sh)


# Author: Sean Carlos
# Date: 2005-08-07
# Purpose: One time brute force migration of Thunderbird mail to Evolution.
# All Thunderbird accounts & folders will be dumped into a Thunderbird
# folder in Evolution.

# *********************************************************
# You must modify the first two variables to match your settings.
# *********************************************************

# Change the location to your Thunderbird Mail directory


# Change the location to your Evolution Mail directory
# Note: you must have already created at least a dummy account in Evolution.


# Done user modifications.
echo “_______________________________________________________________________________”
echo “”
echo ” – one time copy of Thunderbird Email to Evolution”
echo ”                                 v 00.01″
echo “_______________________________________________________________________________”
echo “”
echo ”     You have specified the following:”
echo “”
echo ”  Thunderbird Mail Directory: $THUNDIRBIRD_MAIL”
echo “”
echo ”    Evolution Mail Directory: $EVOLUTION_MAIL”
echo “”
echo “”
echo “_______________________________________________________________________________”
echo “”

echo -n “Are you sure you want to continue? (y/n) [y]: ”
read ans

if [ ! -z $ans ] ; then
if [ $ans = “n” -o $ans = “N” -o $ans = “no” -o $ans = “No” -o $ans = “nO” -o $ans = “NO” ] ; then
echo “”
echo “copy_thunderbird Information: Nothing done.  Exiting.”
echo “”

# Allow Date parameterization

# Ideally, a migration script would migration account information

# 1. Make a Thunderbird directory which will be the the migration folder in Evolution

if [ -d $EVOLUTION_MAIL ] ; then
echo “Creating Directory $EVOLUTION_THUNDERBIRD_MAIL”
echo “”
echo “Found directory $EVOLUTION_THUNDERBIRD_MAIL”
echo “Migration was already performed?  Exiting.”
echo “*** Cannot find Evolution directory $EVOLUTION_MAIL”
echo “*** Start Evolution and create a dummy account in order to create this directory.”
echo “*** Nothing done.  Exiting.”
# 2. Copy everything.  Resolves issues dealing with directory and or filename spaces…

if [ -d $THUNDIRBIRD_MAIL ] ; then
echo “*** Cannot find Thunderbird directory $THUNDIRBIRD_MAIL”

# 3. Delete Thunderbird only index and data files

echo “Deleating msf files under $EVOLUTION_THUNDERBIRD_MAIL”
find $EVOLUTION_THUNDERBIRD_MAIL -name “*.msf” -exec rm {} \;
echo “Deleating dat files under $EVOLUTION_THUNDERBIRD_MAIL”
find $EVOLUTION_THUNDERBIRD_MAIL -name “*.dat” -exec rm {} \;
echo “Deleating rdf files under $EVOLUTION_THUNDERBIRD_MAIL”
find $EVOLUTION_THUNDERBIRD_MAIL -name “*.rdf” -exec rm {} \;
echo “Deleating html files under $EVOLUTION_THUNDERBIRD_MAIL”
find $EVOLUTION_THUNDERBIRD_MAIL -name “*.html” -exec rm {} \;

# The sbd directories exist in Evolution only if not empty.
echo “Deleating empty sbd directories under $EVOLUTION_THUNDERBIRD_MAIL”
find $EVOLUTION_THUNDERBIRD_MAIL -depth -empty -name “*.sbd” -exec rmdir {} \;

# deleate Trash and Template folders (optional…)
echo “Deleating Trash directories under $EVOLUTION_THUNDERBIRD_MAIL”
find $EVOLUTION_THUNDERBIRD_MAIL -name “Trash” -exec rm -rf ‘{}’ \;

echo “Deleating Templates directories under $EVOLUTION_THUNDERBIRD_MAIL”
find $EVOLUTION_THUNDERBIRD_MAIL -name “Templates” -exec rm -rf ‘{}’ \;

# 4. Rename top level Thunderbird e-mail account folders so Evolution can find them.

find $EVOLUTION_THUNDERBIRD_MAIL/ -depth -mindepth 1 -maxdepth 1 -name “*” -exec mv {} {}.sbd \;

# 5. Delete existing Beagle e-mail index
echo “Deleating $HOME/.beagle/MailIndex”
rm -rf $HOME/.beagle/MailIndex

echo “”
echo “_______________________________________________________________________________”
echo “”
echo ”     copy_thunderbird Information: Finished Migration.”
echo “”
echo ”     Start Evolution and click on each new folder to create Evolution indexes.”
echo ”     Evolution will show a count of the items in the folder.  This step is”
echo ”     required for Beagle to find the data.”
echo “”
echo “_______________________________________________________________________________”
echo “”

No Comments Yet - You can be the first to comment!

Leave a comment

Subscribe to RSS