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

Transition from MailMan.FetchMultipleMime to MailMan.FetchMimeBd

Provides instructions for replacing deprecated FetchMultipleMime method calls with FetchMimeBd.

Chilkat PowerShell Downloads

PowerShell
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"

$success = $false

$mailman = New-Object Chilkat.MailMan

#  ...
#  ...

$saUidls = New-Object Chilkat.StringArray
$saUidls.Append("aaa")
$saUidls.Append("bbb")
$saUidls.Append("ccc")

$stUidls = New-Object Chilkat.StringTable
$stUidls.Append("aaa")
$stUidls.Append("bbb")
$stUidls.Append("ccc")

#  ------------------------------------------------------------------------
#  The FetchMultipleMime method is deprecated:

$saMime = $mailman.FetchMultipleMime($saUidls)
if ($mailman.LastMethodSuccess -eq $false) {
    $($mailman.LastErrorText)
    exit
}

#  ...
#  ...

#  ------------------------------------------------------------------------
#  Do the equivalent using FetchMimeBd.

$success = $false
$bdMime = New-Object Chilkat.BinData
$numUidls = $stUidls.Count
$i = 0
while ($i -lt $numUidls) {
    $success = $mailman.FetchMimeBd($stUidls.StringAt($i),$bdMime)
    #  ...
    #  ...

    $i = $i + 1
}