Logo Search packages:      
Sourcecode: poco version File versions  Download package

Poco::Net::POP3ClientSession Class Reference

#include <POP3ClientSession.h>

List of all members.


Detailed Description

This class implements an Post Office Protocol Version 3 (POP3, RFC 1939) client for receiving e-mail messages.

Definition at line 59 of file POP3ClientSession.h.


Public Types

enum  { POP3_PORT = 110 }
typedef std::vector< MessageInfoMessageInfoVec

Public Member Functions

void close ()
void deleteMessage (int id)
Poco::Timespan getTimeout () const
 Sets the timeout for socket read operations.
void listMessages (MessageInfoVec &messages)
void login (const std::string &username, const std::string &password)
 Returns the timeout for socket read operations.
int messageCount ()
 POP3ClientSession (const std::string &host, Poco::UInt16 port=POP3_PORT)
 POP3ClientSession (const StreamSocket &socket)
void retrieveHeader (int id, MessageHeader &header)
void retrieveMessage (int id, std::ostream &ostr)
void retrieveMessage (int id, MailMessage &message, PartHandler &handler)
void retrieveMessage (int id, MailMessage &message)
bool sendCommand (const std::string &command, const std::string &arg1, const std::string &arg2, std::string &response)
bool sendCommand (const std::string &command, const std::string &arg, std::string &response)
bool sendCommand (const std::string &command, std::string &response)
void setTimeout (const Poco::Timespan &timeout)
 Destroys the SMTPClientSession.
virtual ~POP3ClientSession ()

Static Protected Member Functions

static bool isPositive (const std::string &response)

Private Attributes

bool _isOpen
DialogSocket _socket

Classes

struct  MessageInfo
 Information returned by listMessages(). More...

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index