Re: Migrating from Eudora
Thorsten Maerz <[email protected]>
| Newsgroups | gmane.mail.sylpheed.claws.windows |
|---|---|
| Message-ID | <[email protected]> |
Hi Gaëtan, On Fri, 13 Dec 2002 00:33:55 +0100 "Gaëtan Frenoy" <[email protected]> wrote: > However, as I am currenlty using Eudora, I was wondering how I could > import my old mails? I tried "Import mbox..." option which first looks to > work but the attachments are not imported :( I had a similar problem with Calypso and wrote a perl script that converts such an mbox file to MH, includes those separated attachments and regenerates the old folder structure. I don't use Eudora, but I can imagine (hope) that it also leaves some information in the headers, where it put the attachments, so this script should be usable with minor ajustments. You will need the conversion script, Perl and the "MIME-tools" and "libwww-perl" packages. Below are some instructions for ActiveState Perl, but Cygwin or Linux versions should also work (except they don't offer ppm): Using ActiveState Perl - download and install Perl from http://activestate.com - have perl\bin in your path - download and install "MIME-tools" and "libwww-perl" using ppm: D:\Perl\bin>ppm PPM interactive shell (2.1.2) - type 'help' for available commands. PPM> install MIME-tools Install package 'MIME-tools?' (y/N): y Installing package 'MIME-tools'... Installing D:\Perl\html\site\lib\Mail\Address.html Installing D:\Perl\html\site\lib\Mail\Cap.html Installing D:\Perl\html\site\lib\Mail\Field.html Installing D:\Perl\html\site\lib\Mail\Filter.html ... (and so on) - download "calypso-convert.pl" - set the location and name of the mbox at the top of the script, e.g. to convert an mbox file "export.mbox" in the subfolder "data", set "mboxdir" to "data" and "mboxfile" to "export.mbox". You also have to set the name of the directory where to put the results. our $mboxdir = '' || showhelp(); # enter path to exported mbox our $mboxfile = '' || showhelp(); # enter name of exported mbox our $outdir = '' || showhelp(); # enter destination path - You will need to ajdust the headers to those used by Eudora. The folders will be created according to the "$hdr_Folder" header, "$hdr_HTML" and "$hdr_Attach" are used to detect the external attachments. The "$hdr_Account" is only used for debugging and can be ignored. The "$calypso_hdr" header is used to detect the beginning of a Mail in the mbox file (should always be "From ???@???" for mbox). my $calypso_hdr = 'From \?\?\?@\?\?\? '; #Mon Apr 17 00:37:38 2000 my $hdr_Folder = 'X-CalypsoFolder:'; my $hdr_HTML = 'X-CalypsoHtmlBody:'; my $hdr_Account = 'X-CalypsoAccount:'; my $hdr_Attach = 'X-Attachment:'; [1] calypso-convert.pl (from claws-CVS) : http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/sylpheed-claws/sylpheed-claws/tools/calypso_convert.pl?rev=HEAD&content-type=text/plain [2] ActiveState Perl http://downloads.activestate.com/ActivePerl/Windows/5.6/ActivePerl-5.6.1.633-MSWin32-x86.msi HTH, -- Thorsten Maerz <[email protected]> Sylpheed-claws/Win32: http://claws-w32.sf.net ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/