|
Summary
Delivers the data requested by the Fetch or UidFetch methods.
Description
The OnData event occurs in response to the Fetch or UidFetch method. It delivers any untagged response from the IMAP server.
The MsgNum contains the message sequence number, the MsgUid contains the unique identifier of the message. The MsgUid parameter will only be valid if the UidFetch method
was called. The Buffer contains the data that has been fetched and the Length is the length of the buffer.
Example
Private Sub Imap_OnData(MsgNum As Long, MsgUid As Long, Buffer As String, Length As Long)
'Event delivers Data received from Fetch method
Message = "Fetched data from message number: " & MsgNum
List.Text = List.Text + Chr(13) + Chr(10) + Message
List.Text = List.Text + Chr(13) + Chr(10) + Buffer
End Sub
|