Xojo Plugin
Xojo Plugin
Transition from Imap.FetchSingle to Imap.FetchEmail
Provides instructions for replacing deprecated FetchSingle method calls with FetchEmail.Chilkat Xojo Plugin Downloads
Dim success As Boolean
success = False
Dim imap As New Chilkat.Imap
// ...
// ...
// ------------------------------------------------------------------------
// The FetchSingle method is deprecated:
Dim emailObj As Chilkat.Email
emailObj = imap.FetchSingle(1,False)
If (imap.LastMethodSuccess = False) Then
System.DebugLog(imap.LastErrorText)
Return
End If
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using FetchEmail.
// Your application creates a new, empty Email object which is passed
// in the last argument and filled upon success.
Dim headerOnly As Boolean
headerOnly = False
Dim email As New Chilkat.Email
success = imap.FetchEmail(headerOnly,1,False,email)
If (success = False) Then
System.DebugLog(imap.LastErrorText)
Return
End If