Small library for reading mail messages via POP3. Currently doesn\'t return all header fields, and does only plain text authorization.
Diff: pop3.cpp
- Revision:
- 5:3182b4eda69b
- Parent:
- 4:850d9e9884fd
- Child:
- 6:3e29a3a6f3bb
diff -r 850d9e9884fd -r 3182b4eda69b pop3.cpp --- a/pop3.cpp Tue Feb 01 22:07:24 2011 +0000 +++ b/pop3.cpp Mon Feb 14 20:22:21 2011 +0000 @@ -20,11 +20,6 @@ _username=username; _password=password; _servername=servername; - - _closed=false; - - _stream=new TCPLineStream(servername,110,"\r\n"); - } Pop3::~Pop3() { @@ -141,6 +136,9 @@ } bool Pop3::init() { + _closed=false; + _stream=new TCPLineStream(servername,110,"\r\n"); + if (!_stream->open()) return NULL;