g'day
im trying to convert a few hundred emails that were saved from outlook express
the files are listed as
my data.eml
im trying to convert these for use in evolution
after much reading i found this post
http://ubuntuforums.org/showthread.php?t=45838
in particular this one near the bottom
------------
Re: how to open a forwarded email (.eml format)
Here is a way to do it using Thunderbird. I know it isn't pretty but it works. The method involves converting it to mbox format and then moving it into T-bird in a special inbox of your choice.
1) apt-get install ruby
2) from the URL: www.broobles.com/eml2mbox download and unzip eml2mbox.zip into your home account
3) create a receiver directory in your account, call it my_emls or something
4) move one or more of your saved *.eml's into this directory
5) in T-bird create a folder under Local Folders, call it Inboxmbox
6) run the following command in your account:
ruby eml2mbox.rb ./my_emls /home/<your account>/.mozilla-thunderbird/xxxxxxx.default/
Mail/"Local Folders"/Inboxmbox
(you will have to find the value of xxxxxxx by looking under .mozilla-thunderbird)
Notes: for some reason you must fully qualify the last argument or it can't find the file.
you must completely clean out the my_emls folder each time or ALL the entries will be put in again.
you will be given the choice to (o)verwrite, (a)ppend or (c)ancel on the Inboxmbox folder.
I am working on a script to perform the conversion and move as the command is so darn long to type in each time.
For some reason I am getting more and more of these .eml attachments than ever before. If anyone else has noticed this please let me know.
------------------
does anyone know how to make this script take multiple .eml files and convert to mbox format
i have tried to copy the .eml files in to their own directory and the this command
ruby ./eml2mbox.rb ./*eml /media/data2/eml.convert
and i get this output
Specified dir : ./1963.eml
Specified file: ./3 more fotos, London.eml
[./1963.eml] is not a directory (might not exist). Please specify a valid dir
looks like it is trying to create an extra directory
what i want this to do is read each of the files in the directory the .eml files are save them in mbox format to the same directory in .mbox format
i reckon my command line is correct. any ideas?
thanks
Bookmarks