Method | Description | |
---|---|---|
CopyMessage ( string sUid, string sFolderName ) : void |
Copy Message
|
|
ExamineFolder ( string sFolder ) : void |
Examine the sFolder/mailbox after login
|
|
Expunge ( ) : void |
Expunge
|
|
FetchMessage ( string sMessageUID, |
Fetch the full message
|
|
FetchPartBody ( string sMessageUID, string sMessagePart, string &sData ) : void |
Fetch the body for specified part
|
|
FetchPartHeader ( string sMessageUID, string sMessagePart, |
Fetch Header of the message uid and part
|
|
GetMessageSize ( string sUid ) : long |
Get the message size
|
|
GetQuota ( string sFolderName, bool &bUnlimitedQuota, int &nUsedKBytes, int &nTotalKBytes ) : void |
Get the quota for specific folder
|
|
HasEnoughQuota ( string sFolderName ) : bool |
Check if enough quota is available
|
|
IsMultipart ( |
Check if this message is multipart To Identify multipart message, the content-type is either multipart or rfc822
|
|
LogOut ( ) : void |
Logout the user: It logout the user and disconnect the connetion from IMAP server.
|
|
Login ( string sHost, string sUserId, string sPassword ) : void |
Login to specified Imap host and default port (143)
|
|
Login ( string sHost, ushort nPort, string sUserId, string sPassword, bool sslEnabled = false ) : void |
Login to specified Imap host and port
|
|
MoveMessage ( string sUid, string sFolderName ) : void |
Move message to specified folder
|
|
SearchMessage ( string asSearchData, bool bExactMatch, |
Search the messages by specified criterias
|
|
SelectFolder ( string sFolder ) : void |
Select the sFolder/mailbox after login
|
|
SetFlag ( string sUid, string flag, bool removeFlag = false ) : void |
Store flag
|
Method | Description | |
---|---|---|
FindAndRemove ( string &sBodyStruct, char ch ) : bool |
find the given character and remove
|
|
GetBody ( string sMessageUid, string sPartNumber, string &sData ) : void |
Get the message body for specified part
|
|
GetBodyStructure ( string sMessageUID, |
Get the Body structure of the message. If message is single part then first part is 1 If message is multipart then first part is 0
|
|
GetContentDisposition ( string &sBodyStruct, string &sDisp ) : bool |
Get Content Disposition
|
|
GetContentType ( string &sBodyStruct, string &sType, string &sSubType, string &sContentType ) : bool |
Get the content type
|
|
GetHeader ( string sMessageUid, string sPartNumber, |
Get the header for specific partNumber and Message UID
|
|
GetResponseSize ( string sResponse ) : long |
Get the Size of the fetch command response response will look like "{
|
|
IsNilString ( string &sBodyStruct ) : bool |
Returns true if starts with NIL
|
|
ParseAddress ( string &sBodyStruct, string &sString ) : bool |
Parse one address and format the string
|
|
ParseAddressList ( string &sBodyStruct, string &sString ) : bool |
Parse the address string
|
|
ParseBodyStructure ( string sMessageUID, string &sBodyStruct, |
Parse the bodystructure and store as XML Element
|
|
ParseEnvelope ( string &sBodyStruct, |
||
ParseExtension ( string &sBodyStruct, string &sString ) : bool |
Parse the extension in body structure
|
|
ParseLanguage ( string &sBodyStruct, string &sString ) : bool |
Parse the language or list of languages in body structure
|
|
ParseParameters ( string &sBodyStruct, |
Parse the parameter in body structure
|
|
ParseQuotedString ( string &sBodyStruct, string &sString ) : bool |
Parse the quoted string in body structure
|
|
ParseString ( string &sBodyStruct, string &sString ) : bool |
Parse the string (seperated by spaces or parenthesis)
|
|
Restore ( bool bSelectFolder ) : void |
Restore the connection using available old data Select the sFolder if previously selected
|
public CopyMessage ( string sUid, string sFolderName ) : void | ||
sUid | string | Either UID or range of uid e.g 1:2 |
sFolderName | string | Folder where it needs to be copied |
return | void |
public ExamineFolder ( string sFolder ) : void | ||
sFolder | string | Mailbox folder |
return | void |
public FetchMessage ( string sMessageUID, |
||
sMessageUID | string | Message UID |
oXmlWriter | ||
bFetchBody | bool | |
return | void |
public FetchPartBody ( string sMessageUID, string sMessagePart, string &sData ) : void | ||
sMessageUID | string | Message uid |
sMessagePart | string | Message part |
sData | string | |
return | void |
public FetchPartHeader ( string sMessageUID, string sMessagePart, |
||
sMessageUID | string | Message UID |
sMessagePart | string | Message part |
asMessageHeader | Output Array | |
return | void |
public GetQuota ( string sFolderName, bool &bUnlimitedQuota, int &nUsedKBytes, int &nTotalKBytes ) : void | ||
sFolderName | string | Mailbox folder |
bUnlimitedQuota | bool | Is unlimited quota |
nUsedKBytes | int | Used quota in Kbytes |
nTotalKBytes | int | Total quota in KBytes |
return | void |
public HasEnoughQuota ( string sFolderName ) : bool | ||
sFolderName | string | Mailbox folder |
return | bool |
public IsMultipart ( |
||
asHeader | ||
return | bool |
public Login ( string sHost, string sUserId, string sPassword ) : void | ||
sHost | string | Imap Server name |
sUserId | string | User's login id |
sPassword | string | User's password |
return | void |
public Login ( string sHost, ushort nPort, string sUserId, string sPassword, bool sslEnabled = false ) : void | ||
sHost | string | Imap server name |
nPort | ushort | Imap server port |
sUserId | string | User's login id |
sPassword | string | User's password |
sslEnabled | bool | |
return | void |
public MoveMessage ( string sUid, string sFolderName ) : void | ||
sUid | string | UID of the message |
sFolderName | string | Folder where you want to move the message |
return | void |
public SearchMessage ( string asSearchData, bool bExactMatch, |
||
asSearchData | string | Search criterias |
bExactMatch | bool | Is it exact search |
asSearchResult | search result | |
return | void |
public SelectFolder ( string sFolder ) : void | ||
sFolder | string | mailbox folder |
return | void |
public SetFlag ( string sUid, string flag, bool removeFlag = false ) : void | ||
sUid | string | |
flag | string | E.g \Deleted |
removeFlag | bool | Remove the flaf |
return | void |