How to check your Hotmail or Windows Live Account from Ubuntu with Evolution
It's incredibly frustrating for those of us who use Microsoft's webmail applications under Linux. To begin with, when Microsoft started their Live Mail application it only supported Internet Explorer, so no Linux. Secondly, Hotmail and Live Mail do not allow users to connect to the mail server via POP or SMTP so to check your email you need to manually pull up a browser to see if you've received any mail. In the following tutorial I explain how to download your Hotmail or Live Mail emails using Ubuntu 8.10, Evolution, and applications from the repositories.
We'll perform the following steps using the graphical user interface as much as possible. The following tutorial was written for Ubuntu 8.10 but should function (with slight modifications) on any supported version of Ubuntu and most current Linux distibutions. Update: I've updated the tutorial to reflect new changes to get this app working under Ubuntu. I've also attached the Getlive manual that outlines all configuration options.
Install GetLive
GetLive is a Python script that will log in to your Hotmail or Live Mail account and download your emails. In this tutorial we will save these emails in a mbox file that is readable in Evolution. While GetLive is in the Ubuntu repositories, the version there is outdated and no longer functions. What we will do is grab the updated package from the Debian website on top of installing the package from the Ubuntu repositories (this is so any dependencies issues are met). First, open up the terminal (Applications - Accessories - Terminal) and enter:
sudo aptitude install getlive
This will install the broken version of GetLive, but will also install any dependencies that aren't met in your installation. Next we download the updated package from Debian. The URL for the package we are after is - http://ftp.au.debian.org/debian/pool/main/g/getlive/getlive_0.58~cvs2008... (If this link is broken then visit - http://packages.debian.org/lenny/all/getlive/download and select another mirror). Simply download this new package and double-click it to install. Update: I've attached the new .deb file to this post.
Configure GetLive
Once GetLive is installed we need to configure it to download our emails. to do this we open the GetLive configuration file and add our details. Navigate to Places - Home Folder and hold ctrl + h to show the hidden files. Open the file ".getliverc" or create it if it's not present. To create the file right click in your home directory, select Create Document - Empty File and name it ".getliverc". Add the following lines to the file:
UserName = the first part of your email address (before the @ symbol)
Password = Your Password
Domain = hotmail.com (the second part of your email address - after the @ symbol)
FetchOnlyUnread = Yes
RetryLimit = 3
Processor = /bin/cat - >> FetchedMail
Folder = Inbox
MarkRead = Yes
mode=200810
The UserName, Password and Domain should be fairly self explanitory. FetchOnlyUnread can read either "Yes" or "no". If you want to get all of your messages (perhaps for the first download) then enter "No". RetryLimit is the number of attempts to connect to the server should the previous attempt(s) fail. Processor is the application that processes the downloaded content. You can add sendmail to forward the email via SMTP for example. What we have in this file converts the messages to mbox format. Folder is the folder of your Hotmail or Live Mail account that messages are downloaded from. You can leave this line out to download from all of your folders or separate options with a comma. MarkRead will mark downloaded messages as read on your Hotmail or Live Mail account. I'm not sure what 'mode=200810' actually means but it makes the app work properly with the new Hotmail and Live Mail changes.
A sample file for microsoft@hotmail.com would read:
UserName = microsoft
Password = SoMePaSsWoRd
Domain = hotmail.com
FetchOnlyUnread = Yes
RetryLimit = 3
Processor = /bin/cat - >> FetchedMail
Folder = Inbox
MarkRead = Yes
mode=200810
Download Messages
To download the emails we will create a script to execute GetLive and then schedule this script to execute every thirty minutes. In your Home directory create a file called "check_hotmail.sh". Open this file and enter:
#!/bin/sh
# Check Hotmail Account with GetLive
getlive
Save this file and exit the text editor. This simple bash script will execute the GetLive application. We execute this in a script so that if we ever want or need to add any variables we can do so in a central location in a single file. Next, create a file in you home directory called "cron.txt". Open this file and enter:
# Check Hotmail Account every Thirty Minutes
30 * * * * sh /home/your_user_name/check_hotmail.sh
Save this file and exit the text editor. We create the cron.txt file so that we can manage our cronjobs (scheduled tasks) from a central location and in a single file. Open your terminal (Applications - Accessories - Terminal) and type "crontab cron.txt". This loads the contents of the cron.txt file into your central crontab file. There is one final step and it requires opening up your Hotmail or Live Mail account in your browser. Select 'Options' on the upper right of the page and select 'off' under 'reading pane settings'. If you wait thirty minutes GetLive will automatically download your emails. If you don't want to wait, however, simply type "getlive" in the terminal.
Configure Evolution
Getting Evolution to display the emails downloaded with GetLive is a very simple task. Open Evolution and select Edit - Preferences - Mail Accounts - Add Enter in your personal details where required. When you get to the Receiving Email options select "local delivery" from the drop down box and for the Path option select "(Your Home Directory) FetchedMail". Enter in your personal information in the following steps and save the configuration. Evolution is now configured to check your Hotmail or Live Mail emails, as downloaded with GetLive, as often as you tell it to.












Comments
Checking Hotmail with Getlive
Hi, thanks for a nice tutorial. It ALMOST worked for me.
I got to the part where I attempted to check my hotmail (I ran "getlive" in the terminal). Here is what was returned:
Logging in.Got MainPage.GetLive died with message: 'No folders detected. Likely the page structure has changed. at /usr/bin/getlive line 1236.
I am new to Ubuntu. I am running 8.10.
Thanks for any advice you can give!
Re: GetLive issues
Would you be able to post your ".getliverc" file? If you don't want to post it here then send me an email via the contact button above. (don't include your password though).
In the meantime try running getlive with the folders variable omitted from the .getliverc file.
## This section of the application's code is to "Get a list of the folders we have to deal with and parse them one by one."
I have the same error,
I have the same error, perhaps it is because the windows live website changed.
Cédric
Could not login
Hi
Nice how to, bud i got a littel problem. Maybe its notting bud i cannot find the solution. This is my output after typing " getlive " in concole:
GetLive $Revision: 1.43 $ Copyright (C)2007 Jos De Laender.GetLive comes with ABSOLUTELY NO WARRANTY.This is free software, and you are welcome to redistribute itunder certain conditions; see the file License for details.$Name: Release_0_57 $$Id: GetLive.pl,v 1.43 2008/07/05 19:55:41 jdla Exp $Running at Wed Nov 5 18:08:59 2008 for user piet.jorritsma001.Logging in.GetLive died with message: 'Could not log in. Maybe structure has changes or was not foreseen. at /usr/bin/getlive line 718.
I'm using fclive.nl instead of live.nl. This is my mail account from school.
Thanks for the nice how to
Further Assistance
I'm not sure what's causing the line 1236 error (there is a bug report for this error over here if you want to take a look).
The line 718 error is a username/password error. This coud also be that the fclive.nl has a different page/url structure.
If you think that this is a bug rather than a configuation error then please submit a bug report to Ubuntu as there are currently no open bugs for GetLive.
The GetLive package page for Ubuntu 8.10 is http://packages.ubuntu.com/source/intrepid/getlive
The GetLive Bug Reports page for Ubuntu 8.10 is https://launchpad.net/distros/ubuntu/+source/getlive/+bugs
The GetLive changelog for Ubuntu 8.10 is http://changelogs.ubuntu.com/changelogs/pool/universe/g/getlive/getlive_0.57-1/changelog
You can file a bug report at Launchpad at https://bugs.launchpad.net/ubuntu/+filebug
-------------------------
If this issue continues it would perhaps be best to visit the GetLive project page where you can read big reports and ask for help from the developers. There is currently a bug report there for a line 720 error (similar to the line 718 error above).
Error
I was so happy to find this tutorial because it would make life much easier having my mail on my desktop again. I got all the way to the end and got this message
GetLive died with message: 'Configuration file '/root/.getliverc' could not be opened : No such file or directory. at /usr/bin/getlive line 249.
Thank you for making this, I was very excited at the prospect to use it.
Fix for Debian, bud still can't get it to work on Ubuntu
Martin Ferrari has uploaded a fix for this problem to Debian a couple of days ago. I tried it on Ubuntu 8.10 bud got the message:
GetLive died with message: 'Could not log in. Maybe structure has changes or was not foreseen. at /usr/bin/getlive line 731.
Maybe u guy's can get it to work on Ubuntu (didnot try it on debian)
You can get the new getlive overhere:
http://packages.debian.org/nl/sid/getlive
Tried the Debian Fix
Tried the Debian fix by installing the package getlive_0.58~cvs20081219-1_all.deb (using the link in the post above)
Got further than I've previously managed, but still got an error:
GetLive $Revision: 1.46 $ Copyright (C)2007 Jos De Laender.GetLive comes with ABSOLUTELY NO WARRANTY.This is free software, and you are welcome to redistribute itunder certain conditions; see the file License for details.$Name: $$Id: GetLive.pl,v 1.46 2008/10/31 12:22:31 jdla Exp $Running at Mon Dec 22 21:35:14 2008 for user xxxxxxx.Logging in.Got MainPage.Processing folder Inbox.Loading folder 'Inbox'.GetLive died with message: 'Could not correctly parse the messages table. at /usr/bin/getlive line 1058.
Perhaps Microsoft have changed it again. Very annoying
The Debian Fix - Working
Add mode=200810 to ~/.getliverc
getlive
last version, on debian, doesn't work, with the same message, event with mode=200810 :(
GetLive died with message: 'No folders detected. Likely the page structure has changed. at /usr/bin/getlive line 1236.'
getlive
last version, on debian, doesn't work, with the same message, event with mode=200810 :(
GetLive died with message: 'No folders detected. Likely the page structure has changed. at /usr/bin/getlive line 1236.'
And I have a messagfe : Mode==.... in the config file is ignored.
This version works obnly for 'Live' mailboxes
Functions Fine Again
I've just installed the new version from Debian and it works fine with a few extra configuration steps. Works on all the @hotmail and @live domains that I have.
I've updated the above tutorial to reflect these changes. As always, questions and comments welcome.
Working in Jaunty
I've just installed Jaunty in a VM and the version of GetLive that ships with it is the working version above (0.58~cvs20081219-1 - see here). This'll make things a little easier in the short term.
It's better to debate a question without settling it than to settle a question without debating it. - Jeseph Joubert
thanks
This article is really great.
I'm new to Linux and this has sorted out my email with WLM.
I have just one question. Is it possible to remove messages from WLM directly from Evolution during the send/receive?
Luciano
@ Luciano
To delete the messages from the folder Getlive accesses simply include thefollowing line in your configuration file.
Delete = yes
It's better to debate a question without settling it than to settle a question without debating it. - Jeseph Joubert
Future Comments
As this has been a very heavily read article which has now been archived and had commenting disabled, please place any new comments at the new location. Thanks.
It's better to debate a question without settling it than to settle a question without debating it. - Jeseph Joubert