Pop3 Class
Namespace: Rebex.Net
Assembly: Rebex.Pop3.dll (version 7.0.9147)
Provides methods for communication with POP3 servers.
Syntax
public class Pop3 : NetworkSession, ILogWriterProvider, IDisposable
Inherited Members
Remarks
All members of this class are thread-safe.
Constructors
Name | Description |
---|---|
Pop3() | Initializes a new instance of the Pop3 class. |
Fields
Name | Description |
---|---|
Default |
Default POP3/Implicit SSL port (995). |
Default |
Default POP3 port (110). |
Properties
Name | Description |
---|---|
Abort |
Gets or sets the length of time before the abort operation times out. |
Default |
Gets or sets a default log writer used by all new instances of Network |
Encoding | Gets or sets the Encoding used to encode command arguments sent to the server and decode received answers. |
Instance |
Gets instance ID (intended for logging purposes).
Inherited from Network |
Is |
Returns a value indicating whether the session is authenticated. |
Is |
Gets a value indicating whether there any operation (method) in progress. |
Is |
Gets a value indicating whether the session is connected. |
Is |
Gets the value indicating whether the control connection is secured. |
Local |
Gets the local client End |
Log |
Gets or sets the Log |
Proxy | Gets or sets the network proxy to use to access a remote server. |
Remote |
Gets the remote server End |
Server |
Gets the server name, if available.
Inherited from Network |
Server |
Gets the server port, if available.
Inherited from Network |
Settings | Gets or sets POP3 object settings. |
State | Gets the current state of the Pop3 object. |
Supported |
Gets the bit field specifying the extensions supported by the server. |
Timeout | Gets or sets the length of time in milliseconds before the operation times out (specify -1 or 0 to indicate that the request does not time out). |
Tls |
Returns the TLS/SSL socket of secured control connection. |
User |
Gets the authenticated user name, if available.
Inherited from Network |
Version | Returns the version of the POP3 component. |
Methods
Name | Description |
---|---|
Abort() | Aborts the current operation. |
Check |
Checks whether the POP3 session is still connected. Throws an exception on error. |
Connect(String) | Connects to the POP3 server. |
Connect(String, Ssl |
Connects to the POP3 server with the specified security. Use a port corresponding to the specified security mode. |
Connect(String, Int32) | Connects to the POP3 server. |
Connect(String, Int32, Ssl |
Connects to the POP3 server with the specified security. |
Connect |
Begins asynchronous Connect operation. Connects to the POP3 server with the specified security. Use a port corresponding to the specified security mode. |
Connect |
Begins asynchronous Connect operation. Connects to the POP3 server with the specified security. |
Connect |
Begins asynchronous Connect operation. Connects to the POP3 server. |
Connect |
Begins asynchronous Connect operation. Connects to the POP3 server. |
Delete(Int32) | Marks a message as deleted. Messages marked as deleted will actually be deleted after a call to Disconnect() method. |
Delete |
Begins asynchronous Delete operation. Marks a message as deleted. Messages marked as deleted will actually be deleted after a call to Disconnect() method. |
Disconnect() | Deletes any messages marked as deleted and terminates the connection. |
Disconnect(Boolean) | Deletes any messages marked as deleted and terminate the connection. |
Disconnect |
Begins asynchronous Disconnect operation. Deletes any messages marked as deleted and terminate the connection. |
Dispose() | Disposes the Pop3 object and all the socket objects. |
Dispose(Boolean) | Releases the unmanaged resources used by the Pop3 and optionally releases the managed resources. |
Finalize() | Finalizer. Called by garbage collector during object destruction. |
Get |
Checks whether the POP3 session is still connected and returns its state. |
Get |
Gets hash code for this object.
Inherited from Network |
Get |
Retrieve the size of the mailbox - the sum of lengths of all messages. |
Get |
Begins asynchronous GetMailboxSize operation. Retrieve the size of the mailbox - the sum of lengths of all messages. |
Get |
Downloads a message with a specified number from the server and loads
it into an instance of Mail |
Get |
Begins asynchronous GetMailMessage operation.
Downloads a message with a specified number from the server and loads
it into an instance of Mail |
Get |
Downloads the message with a specified number from the server and writes its data into a supplied stream. |
Get |
Downloads the message with a specified number from the server and writes its data into a local file. |
Get |
Begins asynchronous GetMessage operation. Downloads the message with a specified number from the server and writes its data into a supplied stream. |
Get |
Begins asynchronous GetMessage operation. Downloads the message with a specified number from the server and writes its data into a local file. |
Get |
Retrieve the number of messages in the mailbox. |
Get |
Begins asynchronous GetMessageCount operation. Retrieve the number of messages in the mailbox. |
Get |
Downloads the headers of a message with a specified number from the server and writes it into a supplied stream. |
Get |
Begins asynchronous GetMessageHeaders operation. Downloads the headers of a message with a specified number from the server and writes it into a supplied stream. |
Get |
Gets information about a message with the specified sequence number. |
Get |
Begins asynchronous GetMessageInfo operation. Gets information about a message with the specified sequence number. |
Get |
Retrieves a list of messages in the mailbox with unique IDs and lengths. |
Get |
Retrieves a list of messages in the mailbox. |
Get |
Begins asynchronous GetMessageList operation. Retrieves a list of messages in the mailbox. |
Get |
Converts a unique ID to sequence number. Returns the sequence number of the specified message, or null (Nothing in VB.NET) if not found. |
Get |
Begins asynchronous GetMessageSequenceNumber operation. Converts a unique ID to sequence number. Returns the sequence number of the specified message, or null (Nothing in VB.NET) if not found. |
Get |
Downloads a message with a specified number from the server and loads
it into an instance of Mime |
Get |
Begins asynchronous GetMimeMessage operation.
Downloads a message with a specified number from the server and loads
it into an instance of Mime |
Get |
Gets the list of supported authentication methods. |
Login(Gss |
Authenticates the user to the POP3 server using the specified GSSAPI provider. Only supported on Windows and partially on Mono. |
Login(Pop3Authentication) | Authenticates the user to the POP3 server using the specified authentication method that does not require credentials (NTLM or GSSAPI). Only supported on Windows. |
Login(String, Pop3Authentication) | Authenticates the user to the POP3 server using an OAuth token. |
Login(String, String) | Authenticates the user to the POP3 server. |
Login(String, String, Pop3Authentication) | Authenticates the user to the POP3 server using the specified authentication method. |
Login |
Begins asynchronous Login operation. Authenticates the user to the POP3 server using the specified GSSAPI provider. Only supported on Windows and partially on Mono. |
Login |
Begins asynchronous Login operation. Authenticates the user to the POP3 server using the specified authentication method that does not require credentials (NTLM or GSSAPI). Only supported on Windows. |
Login |
Begins asynchronous Login operation. Authenticates the user to the POP3 server using an OAuth token. |
Login |
Begins asynchronous Login operation. Authenticates the user to the POP3 server using the specified authentication method. |
Login |
Begins asynchronous Login operation. Authenticates the user to the POP3 server. |
On |
Raises the Command |
On |
Raises the Response |
On |
Raises the State |
On |
Raises the Transfer |
Read |
Returns a single line of response of the POP3 server to the command. |
Read |
Begins asynchronous ReadResponse operation. Returns a single line of response of the POP3 server to the command. |
Secure() | Secures the connection with TLS/SSL using default parameters. |
Secure |
Begins asynchronous Secure operation. Secures the connection with TLS/SSL using default parameters. |
Send |
Sends a custom command to the POP3 server. |
Send |
Begins asynchronous SendCommand operation. Sends a custom command to the POP3 server. |
Set |
Sets the socket factory to be used to create communication sockets. |
To |
Returns a string representation of this object. |
Undelete() | Unmarks any messages that have been marked as deleted. |
Undelete |
Begins asynchronous Undelete operation. Unmarks any messages that have been marked as deleted. |
Events
Name | Description |
---|---|
Command |
Occurs when a command is send to the server. |
Response |
Occurs when a response is received from the server. |
State |
Occurs when the state of the Pop3 object is changed. |
Transfer |
Occurs when data is send or received. |
Validating |
Occurs when a server certificate needs to be validated. |