Parses the specified item in IMAP4 server response line.
[Syntax] C++: HRESULT execIMAP4Command( BSTR Src, long Index, BSTR* pVal ) Visual Basic: execIMAP4Command( Src As String, Index As Long ) As String C#: string execIMAP4Command( string Src, int Index )
Parameters
Src
Response line to be parsed.
Index
The item index.
Return Value
This method returns specified item in response line.
Usage Example
[Visual Baisc]
Dim response
response = "* LIST (\Noinferiors) ""."" ""Deleted Items"""
Dim oImap4
Set oImap4 = CreateObject("ANPOP.POPMAIN")
MsgBox oImap4.ParseIMAP4Response( response, 0 ) ' return *
MsgBox oImap4.ParseIMAP4Response( response, 1 ) ' return LIST
MsgBox oImap4.ParseIMAP4Response( response, 2 ) ' return (\Noinferiors)
MsgBox oImap4.ParseIMAP4Response( response, 3 ) ' return "."
MsgBox oImap4.ParseIMAP4Response( response, 4 ) ' return "Deleted Items"
Remarks
The POPMAIN object was built based on POP3 protocol before, although now it supports retrieving, deleting email from IMAP4 server. However, it can't implement all features of IMAP4 protocol by old methods. execIMAP4Command method helps developers to implement the all features of IMAP4 such as "Create Folder", "Delete Folder", "Move Email", "Copy Email" and etc. ParseIMAP4Response parses the specified item in IMAP4 raw response.
See Also
EncodeIMAP4Folder Method
DecodeIMAP4Folder Method
execIMAP4Command Method
2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.