Visual Basic 6.0 Requires Chilkat v11.0.0+
Visual Basic 6.0
Transition from MailMan.TransferMultipleMime to MailMan.FetchMimeBd
Provides instructions for replacing deprecated TransferMultipleMime method calls with FetchMimeBd. The code below uses the replacement API without constructing the deprecated returned array.Chilkat Visual Basic 6.0 Downloads
Dim success As Long
success = 0
Dim mailman As New ChilkatMailMan
' ...
' ...
Dim stUidls As New ChilkatStringTable
success = stUidls.Append("aaa")
success = stUidls.Append("bbb")
success = stUidls.Append("ccc")
' Replace the deprecated TransferMultipleMime method using FetchMimeBd.
mailman.ImmediateDelete = 0
success = 0
Dim bdMime As New ChilkatBinData
Dim numUidls As Long
numUidls = stUidls.Count
Dim i As Long
i = 0
Do While i < numUidls
success = mailman.FetchMimeBd(stUidls.StringAt(i),bdMime)
' ...
' Mark the email for deletion.
success = mailman.DeleteByUidl(stUidls.StringAt(i))
' ...
i = i + 1
Loop
' emails marked for deletion will be deleted at this time
success = mailman.Pop3EndSession()