Sample code for 30+ languages & platforms
C#

Transition from MailMan.FetchMultipleMime to MailMan.FetchMimeBd

Provides instructions for replacing deprecated FetchMultipleMime method calls with FetchMimeBd.

Chilkat C# Downloads

C#
bool success = false;

Chilkat.MailMan mailman = new Chilkat.MailMan();

// ...
// ...

Chilkat.StringArray saUidls = new Chilkat.StringArray();
saUidls.Append("aaa");
saUidls.Append("bbb");
saUidls.Append("ccc");

Chilkat.StringTable stUidls = new Chilkat.StringTable();
stUidls.Append("aaa");
stUidls.Append("bbb");
stUidls.Append("ccc");

// ------------------------------------------------------------------------
// The FetchMultipleMime method is deprecated:

Chilkat.StringArray saMime = mailman.FetchMultipleMime(saUidls);
if (mailman.LastMethodSuccess == false) {
    Debug.WriteLine(mailman.LastErrorText);
    return;
}

// ...
// ...

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

success = false;
Chilkat.BinData bdMime = new Chilkat.BinData();
int numUidls = stUidls.Count;
int i = 0;
while (i < numUidls) {
    success = mailman.FetchMimeBd(stUidls.StringAt(i),bdMime);
    // ...
    // ...

    i = i + 1;
}