#include <Mail.h>
Inheritance diagram for MailSource:
Public Member Functions | |
virtual bool | Open (GSocket *S, char *RemoteHost, int Port, char *User, char *Password, char *&Cookie, int Flags=0)=0 |
Opens a connection to the server. | |
virtual bool | Close ()=0 |
Closes the connection. | |
virtual int | GetMessages ()=0 |
Returns the number of messages available on the server. | |
virtual bool | Receive (GArray< MailTransaction * > &Trans, MailSrcCallback Callback=0, int Data=0)=0 |
Receives a list of messages from the server. | |
virtual bool | Delete (int Message)=0 |
Deletes a message on the server. | |
virtual int | Sizeof (int Message)=0 |
Gets the size of the message on the server. | |
virtual bool | GetSizes (GArray< int > &Sizes) |
Gets the size of all the messages on the server. | |
virtual bool | GetUid (int Message, char *Id)=0 |
Gets the unique identifier of the message. | |
virtual bool | GetUidList (List< char > &Id)=0 |
Gets the unique identifiers of a list of messages. | |
virtual char * | GetHeaders (int Message)=0 |
Gets the headers associated with a given message. | |
virtual void | SetProxy (char *Server, int Port) |
Sets the proxy server. e.g. HTTP mail. |
|
Opens a connection to the server.
|
|
Receives a list of messages from the server.
|