tags:

views:

212

answers:

1

I want to script the download of messages from hotmail.

Both Gmail and Hotmail allow access by secure POP on port 995.

My script works fine with Gmail ... but after I send the line to Hotmail

USER [email protected]

I don't get a response back.

I installed Windows Live Mail and that is clearly able to download my hotmail messages.

  1. Is there a way to trace SSL so I can see what I am doing wrong?
  2. Is hotmail expecting something else apart from the USER message from the client?

This is sample code from the REBOL shell.

>> pop: open/lines ssl://pop3.live.com:995
>> set-modes pop [secure: true]
>> pick pop 1
== "+OK BLU0-POP295 POP3 server ready"
>> insert pop "USER [email protected]"
>> pick pop 1 
== none
+1  A: 

I'm not a rebol expert but you may need to include \r\n at the end of USER command line in order to notify the POP server that you're done sending input. I'd guess the server is still waiting for you to send more information or end the line.

Dan
I think you're right. open/lines is supposed to handle this transparently but it looks as though it is only sending a LF. I'll have to send a bug report to rebol.com
Graham Chiu
insert pop "USER [email protected]^M"works as REBOL then adds the LF after this.
Graham Chiu