Hi everyone.
I have a problem when use openssl (cygwin) to get messages from hotmail. After i login with user and pass, no commands get recognized.
this is the log in console:
but when i use cmd everything good.
here my code:
$POP_Server = "pop3.live.com"
$POP_Port = "995"
$pid = Run("openssl.exe s_client -crlf -ign_eof -connect " & $POP_Server & ":" & $POP_Port, "", "", 0x1 + 0x8)
ConsoleWrite(_Read($pid))
StdinWrite($pid,"user userhere@hotmail.com"&@CRLF)
ConsoleWrite(_Read($pid))
Sleep(2000)
StdinWrite($pid,"pass passwordhere"&@CRLF)
ConsoleWrite(_Read($pid))
Sleep(2000)
StdinWrite($pid,"list"&@CRLF)
ConsoleWrite(_Read($pid))
Func _Read($pid)
If Not $pid Then Return -1
Local $dataA
Local $dataB
Do
$dataB = $dataA
sleep(100)
$dataA &= StdOutRead($pid)
ConsoleWrite($dataA)
If @error Then ExitLoop
Until $dataB = $dataA And $dataA And $dataB And StringInStr($dataA,"+OK")
Return $dataA
EndFunc
When i use command "retr 1" instead of "list", the server response -ERR invalid syntax