LumiSoft Mail Server User API
IMAP_Client Class
Namespaces > LumiSoft.Net.IMAP.Client > IMAP_Client
IMAP client.
Syntax

C# | Visual Basic | Managed C++

    public class IMAP_Client : IDisposable

    Public Class IMAP_Client _
    	Implements IDisposable

    public ref class IMAP_Client : IDisposable

Members

All Members | Constructors | Methods | Properties | Fields | Events
Public Protected | Instance Static | Declared Inherited

Icon | Member | Description
--- | --- | ---
| IMAP_Client New() | Default constructor.
| Authenticate(String, String) | Authenticates user.
| Authenticated | Gets if pop3 client is authenticated.
| Connect(String, Int32) | Connects to IMAP server.
| Connect(String, Int32, Boolean) | Connects to IMAP server.
| Connected | Gets if pop3 client is connected.
| CopyMessages(IMAP_SequenceSet, String, Boolean) | Copies specified messages to specified folder.
| CreateFolder(String) | Creates specified folder.
| DeleteFolder(String) | Deletes specified folder.
| DeleteFolderACL(String, String) | Deletes specified user access to specified folder.
| DeleteMessages(IMAP_SequenceSet, Boolean) | Deletes specified messages.
| Disconnect() | Disconnects from IMAP server.
| Dispose() | Clean up any resources being used.
| Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| FetchMessage(Int32, Stream) | Gets specified message from server and stores to specified stream.
| FetchMessages(IMAP_SequenceSet, IMAP_FetchItem_Flags, Boolean, Boolean) | Fetches specifes messages specified fetch items.
| Finalize() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
| GetFolderACL(String) | Gets specified folder ACL entries.
| GetFolderMyrights(String) | Gets myrights to specified folder.
| GetFolderQuota(String) | Gets specified folder quota info. Throws Exception if server doesn't support QUOTA.
| GetFolders() | Gets all available folders.
| GetFolderSeparator() | Gets IMAP server folder separator char.
| GetHashCode() | Serves as a hash function for a particular type. GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
| GetMessagesTotalSize() | Gets messages total size in selected folder.
| GetNamespacesInfo() | Gets IMAP server namespaces info.
| GetSubscribedFolders() | Gets all subscribed folders.
| GetType() | Gets the Type of the current instance. (Inherited from Object.)
| GetUnseenMessagesCount() | Gets unseen messages count in selected folder.
| IsSecureConnection | Gets if the connection is an SSL connection.
| MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.)
| MessagesCount | Gets numbers of messages in selected folder.
| MoveMessages(IMAP_SequenceSet, String, Boolean) | Moves specified messages to specified folder.
| PathSeparator | Gets IMAP server path separator char.
| RecentMessagesCount | Gets numbers of recent(not accessed messages) in selected folder.
| RenameFolder(String, String) | Renames specified folder.
| SelectedFolder | Gets selected folder.
| SelectFolder(String) | Selects specified folder.
| SetFolderACL(String, String, IMAP_ACL_Flags) | Sets specified user ACL permissions for specified folder.
| StartTLS() | Switches IMAP connection to SSL.
| StoreMessage(String, Byte[]()) | Stores message to specified folder.
| StoreMessage(String, IMAP_MessageFlags, DateTime, Byte[]()) | Stores message to specified folder.
| StoreMessageFlags(IMAP_SequenceSet, IMAP_MessageFlags, Boolean) | Stores specified message flags to specified messages.
| SubscribeFolder(String) | Subscribes specified folder.
| ToString() | Returns a String that represents the current Object. (Inherited from Object.)
| UIDNext | Gets next predicted message UID.
| UIDValidity | Gets folder UID.
| UnSubscribeFolder(String) | UnSubscribes specified folder.

Examples

     1using(IMAP_Client c = new IMAP_Client()){
     2    c.Connect("ivx",143);
     3    c.Authenticate("test","test");
     4
     5    c.SelectFolder("Inbox");
     6
     7    IMAP_SequenceSet sequence_set = new IMAP_SequenceSet();
     8    // First message
     9    sequence_set.Parse("1");
    10    // All messages
    11//  sequence_set.Parse("1:*");
    12    // Messages 1,3,6 and 100 to last
    13//  sequence_set.Parse("1,3,6,100:*");
    14
    15    // Get messages flags and header
    16    IMAP_FetchItem msgsInfo = c.FetchMessages(sequence_set,IMAP_FetchItem_Flags.MessageFlags | IMAP_FetchItem_Flags.Header,true,false);
    17
    18    // Do your suff
    19}

Inheritance Hierarchy

Object
| IMAP_Client

Assembly: LumiSoft.Net Version: 2.0.2636.18419 (Module: LumiSoft.Net)