Still not recieving all types of mail...

Giganews Newsgroups
Subject: Still not recieving all types of mail...
Posted by:  Dm_Vinny (dmaster_…@yahoo.com)
Date: Wed, 28 Jan 2004

I am using the latest snapshot of Indy... 9.0.14... and I still cannot
retrieve some headers
and in instances only see "This is a multi-part MIME message".

My code to retrieve mail is as follows;

Pop.Retrieve(s1+1, Msg);
Msg.MessageParts.CountParts;
for intIndex := 0 to Pred(Msg.MessageParts.Count) do
begin
  Application.ProcessMessages;
  if (Msg.MessageParts.Items[intIndex] is TIDAttachment) then
  begin
    Richedit1.Lines.Clear;
    Richedit1.Text := Msg.Body.Text;
  end
  else
  begin
    if (Msg.MessageParts.Items[intIndex] is TIDText) then
    begin
    Richedit1.Lines.Clear;

Richedit1.Lines.AddStrings(TiDText(Msg.MessageParts.Items[intIndex]).Body);
    end;
  end;
  end;

I've tried using the demo mail client to test if it is my code, and it has
the same issues where the message cannot be retrieved as my program, Outlook
etc, picks it up fine.

Replies