|
|
 |
 |
 |
 |
register |
bbs |
search |
rss |
faq |
about
|
 |
 |
meet up |
add to del.icio.us |
digg it
|
 |
 |
| Everything *NIX This is a general forum about all forms of *nix. Post your ideas and thoughts on this wonderful OS family. Talk about your personal favorite flavor of *nix and why you think it's so much better than the others. Anything pertaining to *nix and *nix administration should be posted here. |
 |
|
# 1

2008-06-03, 05:32
|
|
|
[BASH] Parse hotmail.com to download emails?
I am fairly new to shell scripts, but I was wondering if it would be easy to write a bash script that would login to hotmail, open new messages, then write the email to a file or just print it on the terminal? This could probably be included in a simple POP or IMAP server. I'm thinking the script would consist of:
1 logging in
2 download inbox page
3 parse inbox page to get urls to unread messages
4 download the newest unread message
5 parse out the subject, sender, body, etc
6 print subject etc to file
7 repeat 4-6 for other unread messages
I'm not sure how POP and IMAP servers work, but I don't think it would be too difficult to adapt it. This is probably all theoretical, I doubt I will actually go through with this, but sometimes it's fun to think about stuff like this.
edit: curl or lynx might work to login and download pages
Last edited by DiamondX; 2008-06-03 at 07:15.
|
# 2

2008-06-03, 19:12
|
|
Regular
|
|
01
|
|
Re: [BASH] Parse hotmail.com to download emails?
...why not just use a mail client?
|
# 3

2008-06-04, 00:57
|
|
|
Re: [BASH] Parse hotmail.com to download emails?
Last time I checked, hotmail doesn't allow people to access their email any way other than webmail. You have to pay to use IMAP or POP.
|
# 4

2008-06-04, 02:27
|
|
|
Re: [BASH] Parse hotmail.com to download emails?
fuck hotmail
|
# 5

2008-06-04, 02:47
|
|
Regular
|
|
01
|
|
Re: [BASH] Parse hotmail.com to download emails?
Wow, really? Fuck hotmail. Get a gmail account and forward all hotmail email to that.
|
# 6

2008-06-04, 09:40
|
|
|
Re: [BASH] Parse hotmail.com to download emails?
Hotmail doesn't allow forwarding either.  Plus, I already used my hotmail email for most of my accounts. Plus, I was just thinking about doing that script 'cause I was bored and wanted to learn more about how to parse files. This project was basically thought up as a way to get better at scripting and parsing.
|
# 7

2008-06-04, 16:30
|
|
Regular
|
|
01
|
|
Re: [BASH] Parse hotmail.com to download emails?
I doubt hotmail will "let" you, its probably flash/js faggotry.
|
# 8

2008-06-04, 22:16
|
|
|
Re: [BASH] Parse hotmail.com to download emails?
Quote:
Originally Posted by Prometheum
I doubt hotmail will "let" you, its probably flash/js faggotry.
|
You mean the website? They use asp, and I can see the message when I view the source. I'm sure it's possible, if opensource programs (eg. firefox) can view the messages then I should be able to parse out the email, even if it means stealing most of the code from firefox and writing a program in C (or whatever lynx is in). I guess it's just not easy to do, and M$ would easily break it by changing the coding of the website.
Edit: just tried to login in lynx and it says I need JS. 
|
# 9

2008-06-05, 00:17
|
|
Regular
|
|
01
|
|
Re: [BASH] Parse hotmail.com to download emails?
Quote:
Originally Posted by DiamondX
You mean the website? They use asp, and I can see the message when I view the source. I'm sure it's possible, if opensource programs (eg. firefox) can view the messages then I should be able to parse out the email, even if it means stealing most of the code from firefox and writing a program in C (or whatever lynx is in). I guess it's just not easy to do, and M$ would easily break it by changing the coding of the website.
Edit: just tried to login in lynx and it says I need JS. 
|
Yeah, the page source is generated by javascript. That's what I was implying.
Just ditch hotmail.
|
# 10

2008-06-05, 12:29
|
|
Regular
|
|
New Zealand
|
|
Re: [BASH] Parse hotmail.com to download emails?
Quote:
Originally Posted by Prometheum
Just ditch hotmail.
|
And us what?
|
This thread continued for 3 pages in the real archive, 27 posts total - only page 1 survived here.
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |
 |
To the best of our knowledge, the text on this page may be freely reproduced and distributed.

totse.com certificate signatures
|
 |
 |
About | Community | Bad Ideas | Drugs | Ego | Erotica | Fringe | Society | Technology
|
 |
 |
 |
 |
|
|