VBScript Requires Chilkat v11.0.0+
VBScript
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 VBScript Downloads
success = 0
set mailman = CreateObject("Chilkat.MailMan")
' ...
' ...
set stUidls = CreateObject("Chilkat.StringTable")
success = stUidls.Append("aaa")
success = stUidls.Append("bbb")
success = stUidls.Append("ccc")
' Replace the deprecated TransferMultipleMime method using FetchMimeBd.
mailman.ImmediateDelete = 0
success = 0
set bdMime = CreateObject("Chilkat.BinData")
numUidls = stUidls.Count
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()