Delphi ActiveX Requires Chilkat v11.0.0+
Delphi ActiveX
Transition from MailMan.FetchMultipleMime to MailMan.FetchMimeBd
Provides instructions for replacing deprecated FetchMultipleMime method calls with FetchMimeBd.Chilkat Delphi ActiveX Downloads
var
success: Integer;
mailman: TChilkatMailMan;
saUidls: TCkStringArray;
stUidls: TChilkatStringTable;
saMime: ICkStringArray;
bdMime: TChilkatBinData;
numUidls: Integer;
i: Integer;
begin
success := 0;
mailman := TChilkatMailMan.Create(Self);
// ...
// ...
saUidls := TCkStringArray.Create(Self);
saUidls.Append('aaa');
saUidls.Append('bbb');
saUidls.Append('ccc');
stUidls := TChilkatStringTable.Create(Self);
stUidls.Append('aaa');
stUidls.Append('bbb');
stUidls.Append('ccc');
// ------------------------------------------------------------------------
// The FetchMultipleMime method is deprecated:
saMime := mailman.FetchMultipleMime(saUidls.ControlInterface);
if (mailman.LastMethodSuccess = 0) then
begin
Memo1.Lines.Add(mailman.LastErrorText);
Exit;
end;
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using FetchMimeBd.
success := 0;
bdMime := TChilkatBinData.Create(Self);
numUidls := stUidls.Count;
i := 0;
while i < numUidls do
begin
success := mailman.FetchMimeBd(stUidls.StringAt(i),bdMime.ControlInterface);
// ...
// ...
i := i + 1;
end;