C# Class LumiSoft.Net.IMAP.Server.IMAP_Messages

IMAP messages info collection.
Exibir arquivo Open project: jeske/StepsDB-alpha Class Usage Examples

Public Methods

Method Description
AddMessage ( string messageID, int UID, IMAP_MessageFlags flags, long size, System.DateTime date ) : void

Adds new message to list.

GetDeleteMessages ( ) : LumiSoft.Net.IMAP.Server.IMAP_Message[]

Gets messages marked for delete.

IMAP_Messages ( string folder ) : System

Default constructor.

IndexFromUID ( int uid ) : int

Gets message 1-based message index from message UID.

IndexOf ( IMAP_Message message ) : int

Gets message 1-based index.

RemoveMessage ( IMAP_Message msg ) : void

Removes message from list.

this ( int msgNo ) : IMAP_Message

Gets specified message.

Method Details

AddMessage() public method

Adds new message to list.
public AddMessage ( string messageID, int UID, IMAP_MessageFlags flags, long size, System.DateTime date ) : void
messageID string Internal messageID.
UID int Message UID. NOTE: message uid must increase all the time, for new messages.
flags IMAP_MessageFlags Message flags.
size long Message size.
date System.DateTime Message receive date.
return void

GetDeleteMessages() public method

Gets messages marked for delete.
public GetDeleteMessages ( ) : LumiSoft.Net.IMAP.Server.IMAP_Message[]
return LumiSoft.Net.IMAP.Server.IMAP_Message[]

IMAP_Messages() public method

Default constructor.
public IMAP_Messages ( string folder ) : System
folder string
return System

IndexFromUID() public method

Gets message 1-based message index from message UID.
public IndexFromUID ( int uid ) : int
uid int
return int

IndexOf() public method

Gets message 1-based index.
public IndexOf ( IMAP_Message message ) : int
message IMAP_Message
return int

RemoveMessage() public method

Removes message from list.
public RemoveMessage ( IMAP_Message msg ) : void
msg IMAP_Message Message which to remove.
return void

this() public method

Gets specified message.
public this ( int msgNo ) : IMAP_Message
msgNo int
return IMAP_Message