Rails, Firefox, Anime, Mac
In: Neat Stuff
21 Jun 2004Update: gExodus 0.2 is out.
When I saw (and used) Mark Lyon’s Mbox & Maildir to Gmail Loader (GML) (I wrote about it), I was inspired to write a GUI version of it (I didn’t copy Mark’s code, just in case, though it works on the same basis). gExodus is what came out at the end of half a day’s work.
gExodus allows you to import your emails (in mbox format) into your Gmail account. The mbox format is the classic Unix-style mailbox format, and is used by Mozilla Mail/News, Mozilla Thunderbird, qmail, and many other Unix email applications. There currently isn’t support for qmail’s maildir format, which is a much better format in terms of reliability and efficiency (because there isn’t a need to lock a single file, as it is for the mbox format). There doesn’t seem to be any Windows email application that supports maildir, so I’ve left it out. Someone has also posted a feature request for maildir support in Mail/News (and consequently Mozilla Thunderbird), so vote for the bug! I’ll add support for for maildir and possibly the MH mailbox formats if someone requests for it.
Users of email clients which don’t use the mbox format (such as Outlook Express and Outlook) can convert their emails into the mbox format by importing them into Mozilla Mail/News or Mozilla Thunderbird. I’ll add support for Outlook Express (.DBX) and Outlook (.PST) email formats in the near future (there are many converters already available, in fact).
gExodus is written in Python, and uses PythonCard (which is based on wxPython toolkit). PythonCard is a simpler wxPython, and is amazingly simple to use. With a WYSIWYG resource editor which allows you to place widgets and edit their properties, as well as very simple syntax rules and event handling concepts, PythonCard is Visual Studio with a better grounded language (Python). Granted, there are some inadequacies, one of the most glaring being the lack of a formal tab order (I got around that by moving widgets to the front – the nearer one is to the front, the higher it’s tab order). Still, I’m glad I picked PythonCard for my graphical toolkit – I haven’t used any before and was considering my options at this Python GUI toolkit “comparison” page.
gExodus is a standalone program – Gordon McMillan’s Installer was used to convert the Python scripts into executable form. The article Building ‘standalone’ PythonCard Applications came in very handy, especially when I didn’t manage to get py2exe to work (the executable didn’t work properly). The documentation for using McMillan’s Installer with PythonCard didn’t seem to work also. Due to dependencies on the wxPython and PythonCard libraries, the resulting executable package is pretty hefty (approx. 4MB) – 2.4MB of that is a wxPython DLL.
The source code is currently unreleased (I’ll put it out in the near future). Listed below are the binaries.
Update: gExodus 0.2 is out. You may want to get that instead of version 0.1 below.
Download gExodus:
Feedback is greatly appreciated. I haven’t really tested it on other machines (just my own Pentium 4 desktop running Windows XP), so bugs are expected (please let me know of them).
68 Responses to gExodus – a graphical Gmail import tool
Aimless Words
July 22nd, 2004 at 2pm
gExodus Import Tool
Again, it’s a shame to leave that 1GB of storage empty for long. Cheah Chu Yeow over at Redemption in a Blog was inspired by Mark’s GML work and threw together another Python executable for GMail importing. His program is graphical and offers one addit…
Ͷ±Ê´ÓÈÖÒàÓÐʱ...........
June 27th, 2004 at 12pm
some ADVICE to gExodus
The origianl article: gExodus – a graphical Gmail import tool
Now,I see two MAILS-REDIRECTED tools ba…
linklog
July 4th, 2004 at 9pm
Gexodus
redemption in a blog: gExodus – a graphical Gmail import tool A GUI version of Mark Lyon’s Gmail Loader. Cool….
Ͷ±Ê´ÓÈÖÒàÓÐʱ...........
June 27th, 2004 at 12pm
some ADVICE to gExodus
Aimless Words
June 24th, 2004 at 3am
GMail Utilities
So you have your GMail account but you need a little extra something. Perhaps you need a GMail import utility? Or possibly a GMail POP3 proxy program. Or maybe you are interested in turning Gmail into a file archival system? Here is a list of Gmail uti…
Computer Toaster
June 22nd, 2004 at 11pm
Gmail import tool
gExodus allows you to import your emails (in mbox format) into your Gmail account.gExodus – a graphical Gmail import tool…
Technosailor
June 22nd, 2004 at 5am
Automatically Send Your emails to Gmail
With this new Gmail craze, it’s no wonder someone wouldn’t come up with a way to export mail to Gmail. With it’s 1GB of file storage space, it makes it a breeze for long term mail archiving.
Chu has implemented a GUI tool for this purpose.
Erik
July 19th, 2004 at 2am
Let me start by saying that this app is great!
OK, now I have to describe my frustrations with it. Each time I use it, around 1500 messages in, it starts to pump out “ERROR:” messages. If I knew what the error message was, I might be able to resolve the problem on my end, or at minimum wait a minute and try to continue where I left off. Unfortunately, there isn’t a way to continue, so I end up going into GMail, trashing all of my messages, emptying the trash, and starting over. After four tries now on three different machines, I’ve decided to wait until the next version comes out before I attemp a move again.
alterego
July 19th, 2004 at 2am
I tried version 1 and 2 and neither work on Windows XP. I have them unzipped inside a folder on my desktop, and when I click the executable nothing happens. I monitored the program in my process manager and it blinks to life for a millisecond and then dies.
/Alterego
George
July 8th, 2004 at 2pm
Hi Cheah Chu Yeow,
It would be helpful to usrs like me who use Outlook Express but who have no clue as to use the dbxconv with its command lines if… the gExodus could make use of the dbxconv.
If the dbxconv was kept in the same folder, gExodus could have an option to first have mails converted to mbox format using the dbxconv and then uploaded to Gmail.
Cheers :)
Jan
July 4th, 2004 at 10pm
I don’t know whether someone has asked this question before, but is there a way to keep the original date of the message. Now GMail displays the date when it was imported into GMail.
geNius
July 4th, 2004 at 3pm
Just a quick comment for users who have Outlook, you can convert dbx files into mbx files using a tool called DbxConv. website: http://people.freenet.de/ukrebs/dbxconv.html
Matthew
June 29th, 2004 at 5am
A brilliant little tool.
One suggestion for future releases – how about an option to automatically pause on errors? This would help those of us relying of a dialup connection that keeps being disconnected!
Well done and thanks!
Cheah Chu Yeow
June 27th, 2004 at 2pm
albert: I think this could be due to the mbox file being corrupted. I had a problem like this once. Thunderbird sometimes leaves the mbox file corrupted and gExodus (and GML, because we both use the same Python library functions) can’t parse the file correctly.
birong
June 27th, 2004 at 12pm
I have wrote a trackback,but I don’t know why It can’t post here:
http://www.blogbus.com/blogbus/blog/diary.php?diaryid=239367
1, Not to MIME encode in headers,it will cause some chinese mails to show weird/garbage characters in subject & to & from fields.
2,fp.read() function always append first serveral words of the first line of the next msg to current msg.Perhaps it is a bug of python windows version
albert
June 27th, 2004 at 9am
I just hangs for me, all the time, after the 178th message (if that makes a difference.) No error message, no warning, no nothing, it just hangs there with “178: Imported email ‘such and such’” and doesn’t move. I have over 500 emails in my mbox so I know it’s not done, and tcpdump shows no traffic over my internet interface… What’s wrong?
Mark Lyon
June 27th, 2004 at 3am
Yesterday I released the updated .5 version of Google Mail Loader (GML). If there are folks out there who need more than mBox support, I encourage them to check it out.
The new version includes a Graphical Interface and supports two different mBox formats for those with difficulty importing their mBox files.
In addtion it also supports MailDir (Qmail, others), MMDF (Mutt), MH (NMH), and Babyl (Emacs RMAIL). Eventually, I plan to add support for direct sending of IMAP accounts, and am working on a library that can read and export Microsoft Outlook PST files.
Lich
June 25th, 2004 at 8am
This only partially worked for me. I imported all of my Outlook emails into Mozilla Thunderbird. When running gExodus on a folder I know has over 80 emails in it (checked using Thunderbird, and even Notepad), it only uploads 12 of them, the same 12 every time I try.
Jacob
June 26th, 2004 at 2am
Nice program.
However, when using it to import my Thunderbird mbox, I get “Error” on each message that has no subject.
Rob
June 23rd, 2004 at 2am
Mr. Technosailer. I think you misspelled Mr. Cheah’s name wrong on your site under “Blogs I Read”:
Though I am sure Chu Yeow doesn’t mind.
Course I butcher it every chance I get. ;-)
oddTodd
June 24th, 2004 at 7am
so can i use this to export email from outlook 2003? I am a little confused – perhaps a bit more reading will help.
Rory Parle
June 21st, 2004 at 12pm
Worked well for me. Thanks for making this, it’d be pretty lame to have to forward all of my old email. One feature request: could you have it recurse subdirectories and import all the mailboxes in each directory? Okay two feature requests — though I doubt this one’s possible — could it set a label on each email corresponding to the name of the mailbox it’s imported from?
Cheah Chu Yeow
June 21st, 2004 at 10pm
Those are great feature requests! Especially the one where you can set a label. It annoys me that the imported mails clutter up my inbox and I don’t know which ones are imported, and which are “live” emails that I’ve just received. And this would allow me to setup a filter to filter all imported mail to be tagged with a particular label. Why didn’t I think of that? Thanks!
Rory Parle
June 22nd, 2004 at 6am
Well you spent a day coding a useful tool; I spent thirty seconds typing a comment. I don’t think you need to thank me! It reads like you think both requests are do-able, which is cool.
suranpu
June 22nd, 2004 at 10am
Well, this is my first post in your site. I’ve been watching you since my blog addiction started 2 or 3 months ago. I’m telling you this because of the post about your willing to know your readers a bit better.
But the main reason is for let you know that the exodus of my mail has been done succesfully.
Exodus complete.
Statistics: 553 successful, 0 error.
Thanks for the app ;)
P.D.: sorry for my english :P
marcus
September 3rd, 2004 at 8pm
Having problems due to that my isp is blocking port 25. I do have access to authenticated SMTP via port 587.
Is there a way to change the port used and allow for authentication?
Thanks
Nathan
September 8th, 2004 at 3pm
I love your work, great app!
one request though, could you put a status bar on, or a time left counter bar?
Damen
November 11th, 2004 at 2pm
Alright… I imported all my Outlook mail into Thunderbird .9 and when I select the file located at:
C:\Documents and Settings\USER\Application Data\Thunderbird\Profiles\BLAHBLAH.default\Mail\Local Folders\Inbox
It says: Using SMTP server: smtp.gmail.com
Cannot connect to SMTP server.
Any help? Everyone else seems to be having an easy time…
Damen
November 11th, 2004 at 2pm
Sorry, I was using SMTP: gsmtp57.google.com
Zac
November 12th, 2004 at 10am
Anyone know of a way to repair thunderbirds email files? I too have a problem at the 160th message where it stops going, great otherwise
alopecoid
November 18th, 2004 at 8am
My ISP blocks access to port 25. Could you please add an option to change the port? Thanks.
Erik
November 19th, 2004 at 4pm
I am also getting the “Cannot connect to SMTP server.” error.
ederic
November 25th, 2004 at 5pm
this is great. i’ll try this as soon as i find my old mails. :)
Gmail Resource
December 2nd, 2004 at 7am
Nice tool, I will be adding this to my list of Gmail tools at the Gmail Resource.
aGeS
December 30th, 2004 at 10pm
I also got the 10054, Connection Reset By Peer thingy – I think my port 25 is blocked by ISP as I tried putting my PC in the DNZ without any succes.
IC
December 31st, 2004 at 2pm
Hi Cheah Chu Yeow,
Just wanted to say thanks for the nice program. I’ve imported over 70 MB of old emails into GMail using it.
I wanted to second a couple comment previously posted here,
1) I also get an ERROR: message when importing messages that have no subject. Not a big problem since it is easy to filter for these messages and import by hand.
2) The recurse multiple directories feature request or the ability to set the 3 (4 optional) parameters via the commandline. Writing a small shell script to recurse the directories and run a new instance of gExodus for each mBox file found would then be trivial.
Regards,
IC
Ishinryu
February 8th, 2005 at 11am
Will gExodus 0.2 install and work under Windows NT?
MarkieB
February 22nd, 2005 at 8am
Right I am new to all this and very easily confused! I am trying to export all of my hotmail emails into gmail. I have downloaded my hotmail messsages to Thunderbird thanks to “freepops” but when I run gExodus despite having filled in all the details correctly and pointing to an inbox with about 100 messages in it says 0 done 0 success 0 error
Nothing gets transfered! Why???
Jesse Chan
March 23rd, 2005 at 8am
Great utility! I was wondering if there is a way to import to Gmail, but keep the original date — so it shows up correctly in Gmail inbox. As I have several years of e-mail, this is a desirable feature that I haven’t found yet. Thanks.
Kate
April 7th, 2005 at 11pm
I am trying to use Gexodus to export emails from Thunderbird to gmail but it doesn’t appear to be doing anything? The file is quite large so do I just leave it to think about it or is it broken? How can I tell?
(I’ve checked my task manager and Gexodus seems to be using about 2000k?)
Cheers
Kate
A J
April 9th, 2005 at 11pm
I’ve downloaded the program Gexodus and tried to export my existing mails from ThunderBird to Gmail but nothing is working. Is there a way to fix this. Help needed. Thanks.
cheers
A J
nealeym
April 11th, 2005 at 10am
I downloaded the lastest version of the “importer”. Problem I have is that it only imports messages from the current year. Is it supposed to do this or am I missing something here? Also, I am taking the “mbox” files from Thunderbird if that makes a difference. Thanks.
Ami Avivi
April 17th, 2005 at 6am
Thank you very much for the effort. I will keep listening here in case someone posts a fix:
Mine stops (depending on the folder) at message 36, 12 and sometime after 0 messages without reprting any errors.
I exported an email collection of about 1800 messages from Outlook to Thunderbird. The problem is from Thunderbird to gmail.
Since I have many folders, I point out to one folder at at time in the gExodus interface.
Again, I will keep visiting in case someone has ideas…
Thanks again very much for thinking of your fellow geeks.
Ami
sai
April 18th, 2005 at 12am
Great tool – two bugfixes/suggestions:
1. gExodus gets stuck on emails without subjects
2. Insert the requested label after any “Re:|Fwd:|Fw:” characters in the subject, that way gmail’s threading will work correctly.
Dan
April 18th, 2005 at 6am
Can someone please kindly tell me where the default file folder path can be located for Mozilla Thunderbird? I have imported all my mails but cant find the folder with 400 megs in anywhere including my documents and settings nor the Mozilla folder!
Finally can someone then please explain how I think go abt exporting from thunderbird to gExodus to Gmail?
Also is it possible to save the time date stamp on the original mails?
Thx all.
Ami Avivi
April 18th, 2005 at 11am
Thanks for those who tried to help.
I don’t know how to edit messages in Thunderbird (to eliminate the empty subject line) – but even when I move all the empty-subject messages to another folder, the inbox (with 1600 messages) only sends 3 or 4 and stops. I tried to add a label in g-Exodus itself. So far No go.
I still appreciate the effort you have done for the community.
Thanks / will keep looking here from time to time..
Ami
Ami Avivi
April 18th, 2005 at 11am
Dan:
In my Windows XP, the default folder for Thunderbird mail is:
c:\documents and settings\\Application Data\Thunderbird\profiles\ \Mail\
Ami
Dario
August 20th, 2005 at 3am
Hi
I find this utility very usefull. But I would like to know if there is a way to keep the original date in e-mails imported from Thunderbird.
Best,
Dario
eke
August 28th, 2005 at 4pm
hi,
were can i find the *.myox file ? I scannd my machine for *.mbox without result. I’m using Thunderbird 1.06.
NikMan
August 30th, 2005 at 2am
Hi, I am getting “Cannot connect to SMTP server.”" and I have tried almost all smtp addresses.
Please what else can I do. I really want to do this!
Thank you!
kracker
August 31st, 2005 at 4pm
This tool works great still to this day, (08-31-2005) !
Please consider adding more features and releasing and updated version.
The work you have done is exemplary!
Congratulations and Many Thanks …
later yahoo …
//kracker
Cake : I Will Survive
cuthead
March 28th, 2006 at 6am
Thunderbird,
I beg you tell me use your software how to sent mail by date
My Mbox (inbox&sent) mail is clutter
I hope you understand what I say
Skid
April 9th, 2006 at 5am
OK is it just me or has anyone else got an “@googlemail.com” account?
If so how do you change the setting in Gexodus from @Gmail.com ?
Thanks
Frank Gonzalez
May 11th, 2006 at 1am
I must say its a great post. Keep up the good work.
Frank Gonzalez
http://www.gmailcenter.com
Claudio
May 19th, 2006 at 2pm
Quick question: What order does gexodus import emails from an mbox file in? I tried to import about 9000 messages last night and the import failed at message 1019. Rather than restart from scratch I’d at least like to delete the 1019 messages that have made it from my Thunderbird inbox, however, I seem to be unable to match the order (by date, by sender, etc) of the imported emails to the inbox. Any else figure this out yet?
Shobhon
June 15th, 2006 at 2am
NikMan,
I had the same problem for a while, then used my ISP’s SMTP server (mail.optusnet.com.au for me). Your ISP might also be blocking other SMTP so try useing your ISP’s SMTP.
Hope this helps =)
Shobhon.
Solomon
June 15th, 2006 at 4am
Claudio,
Edit your mbox manually and take out the 1019 messages. gExodus does not sort the emails.
DAVID
June 27th, 2006 at 7am
Thanks so much to you all – I had 20 different folders over about two years from thunderbird – The labeling feature was what made importing possible – Thanks a million
Rachel
June 29th, 2006 at 10am
I am having the same problem as Kate (posted 4/7/05). I’ve imported my messages into Thunderbird, but when I run gExodus, nothing seems to be happening. (No error messages, though). When I checked Gmail, nothing had been transferred there yet. It just sits there.
German Gentile
November 14th, 2006 at 6am
Nice utility, amazzing utility, thabks a lot for that save time utility. Now, i need a little more flexibledomain at the end. Do you know now gmail is offering your own domain? So imagine (my case) you have a little business and need to put all that imap stuff online. You cannot (and dont want) use STANDARD gmail.com accounts, wanna export TO mydomain.com (under google) I think it must work just if you allow to change the domain where to send. If you feel is hard to accomplish, can i ask you for the code? TIA German.
Alan
November 25th, 2006 at 6pm
Great utility, although i will confess to not using it for importing to Google’s GMail. I am using it as a generic MBOX import/forward utility.
If you could make the whole email address field selectable then you could have a much wider audience, including forwarding to *any* popular web email system.
Result
memento
December 21st, 2006 at 3pm
I’ve been trying to use gExodus to move several thousand emails stored in several dozen mbox files to my gmail account. About half of the mboxes transferred successfully and about half stopped transferring after an apparently arbitrary number of emails.
After much frustration I eventually opened them in Thunderbird and found the problematic emails – it turned out that they were the emails with a blank Subject field. I opened up the mbox files in a text editor (BBEdit) and, with some creative find-replace work (regular expressions and line breaks were required for this), I managed to make sure each email that previously had either no “Subject:” field between the “To:” field and the “Date:” field or a blank “Subject:” field with minimal manual labor (be careful of emails with multiple recipients, it is easy to miss those with the find-replaces). The transfers then worked without a problem.
I hope that helps anyone who has had the same problem…
mary
January 1st, 2007 at 11am
pkay, I must be retarded or something… I can’t figure out where the file is that has all my e-mail (I’m using Mozilla)
…I keep trying the file “po14.mit.edu.msf” but this doesn’t seem to work… am I looking for a particular extension that would clue me it is the mbox file I’m looking for?
thanks for your help!!
:)
ProfessorB
January 30th, 2007 at 5am
In a future release, can you make the program tell users which messages weren’t sent due to error? When importing hundreds of messages, it’s hard to pinpoint which message wasn’t sent.
Pragmatopian
February 26th, 2007 at 12am
As an update, if the displayed dates are important, you could (1) temporarily set up a mail server with POP3 and IMAP protocols (such as Macallan Mail Solution Mail Server) on your computer, (2) drag and drop mails from archive folders into the mailbox using any mail client that supports IMAP, and (3) connect to the mailbox from GMail using the POP3 protocol to download the mails. This will retain the date stamps, although it needs you to be a bit more tech savvy and have an ISP that will allow the traffic.
I set this up in twenty minutes (mostly spent fiddling with my router config!).
grambala
March 18th, 2007 at 6am
Pragmatopian wrote its possible to download with gmail using pop3 (from selfmade mailserver). I cant find such feature. Anybody else?
Endolith
May 8th, 2007 at 10am
This is great, but the dates aren’t saved correctly. Apparently the trick to saving the dates is to set up a POP server on your computer and have Gmail download the messages through the Mail Fetcher…
Name
September 12th, 2007 at 6am
I know this thread is old … but now you can import gmails directly from one Gmail account (or google apps mail account) to another. Its under the Accounts area of Settings. Set up the account you want to import from as a POP3 source and then tell the Gmail account you want to import the emails into to go fetch the mail from the POP3-enabled Gmail account