Install Evolution
Open Evolution one time and then close it
Configure the Exchange account with your account informations on the Windows domain private.alogialogient.com 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)
——————————————————————————–
#!/bin/bash
# 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
THUNDIRBIRD_MAIL= »$HOME/.mozilla-thunderbird/krpd494d.default/Mail »
# Change the location to your Evolution Mail directory
# Note: you must have already created at least a dummy account in Evolution.
EVOLUTION_MAIL= »$HOME/.evolution/mail/local »
# Done user modifications.
clear
echo « _______________________________________________________________________________ »
echo « »
echo « Â Â copy_thunderbird.sh – 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 « »
exit
fi
fi
EVOLUTION_THUNDERBIRD_MAIL= »$EVOLUTION_MAIL/Thunderbird.sbd »
# Allow Date parameterization
#EVOLUTION_THUNDERBIRD_MAIL= »$EVOLUTION_MAIL/Thunderbird_`date +%F`.sbd »
# Ideally, a migration script would migration account information
#EVOLUTION_GNOME= »/home/sean/.gconf/apps/evolution/mail/%gconf.xml »
# 1. Make a Thunderbird directory which will be the the migration folder in Evolution
if [ -d $EVOLUTION_MAIL ] ; then
if [ ! -d $EVOLUTION_THUNDERBIRD_MAIL ] ; then
echo « Creating Directory $EVOLUTION_THUNDERBIRD_MAIL »
mkdir $EVOLUTION_THUNDERBIRD_MAIL
else
echo « »
echo « Found directory $EVOLUTION_THUNDERBIRD_MAIL »
echo « Migration was already performed? Exiting. »
exit
fi
else
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. »
exit
fi
# 2. Copy everything. Resolves issues dealing with directory and or filename spaces…
if [ -d $THUNDIRBIRD_MAIL ] ; then
echo « Copying $THUNDIRBIRD_MAIL to $EVOLUTION_THUNDERBIRD_MAIL »
cp -rup $THUNDIRBIRD_MAIL/* $EVOLUTION_THUNDERBIRD_MAIL/
else
echo « *** Cannot find Thunderbird directory $THUNDIRBIRD_MAIL »
fi
# 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 « »