Sample code for 30+ languages & platforms
Xojo Plugin Requires Chilkat v11.0.0+

Transition from MailMan.TransferMultipleMime to MailMan.FetchMimeBd

Provides instructions for replacing deprecated TransferMultipleMime method calls with FetchMimeBd.

Chilkat Xojo Plugin Downloads

Xojo Plugin
Dim success As Boolean
success = False

Dim mailman As New Chilkat.MailMan

//  ...
//  ...

Dim saUidls As New Chilkat.StringArray
success = saUidls.Append("aaa")
success = saUidls.Append("bbb")
success = saUidls.Append("ccc")

Dim stUidls As New Chilkat.StringTable
success = stUidls.Append("aaa")
success = stUidls.Append("bbb")
success = stUidls.Append("ccc")

//  ------------------------------------------------------------------------
//  The TransferMultipleMime method is deprecated:

Dim sa As Chilkat.StringArray
sa = mailman.TransferMultipleMime(saUidls)
If (mailman.LastMethodSuccess = False) Then
    System.DebugLog(mailman.LastErrorText)
    Return
End If

//  ...
//  ...

//  ------------------------------------------------------------------------
//  Do the equivalent using FetchMimeBd.

mailman.ImmediateDelete = False

success = False
Dim bdMime As New Chilkat.BinData
Dim numUidls As Int32
numUidls = stUidls.Count
Dim i As Int32
i = 0
While i < numUidls
    success = mailman.FetchMimeBd(stUidls.StringAt(i),bdMime)
    //  ...

    //  Mark the email for deletion.
    success = mailman.DeleteByUidl(stUidls.StringAt(i))
    //  ...

    i = i + 1
Wend

//  emails marked for deletion will be deleted at this time
success = mailman.Pop3EndSession()