Message in a Message II

Giganews Newsgroups
Subject: Message in a Message II
Posted by:  John Siggy (jsigolo…@quikstor.com)
Date: Tue, 18 Dec 2007

Thanks for the suggestion but in Indy 9.19, a message attached to a message
does not show up as an attachment.  The attached msg shows as TIdText and I
can't figure out how to get the zip file out of this message in a message.
I have tried saving:

  for fAttach := 0 to IdMessage.MessageParts.Count - 1 do
    begin
        if IdMessage.MessageParts.Items[fAttach] is TIdAttachment then
          >> NEVER GETS HERE <<
      else if IdMessage.MessageParts.Items[fAttach] is TIdText then
          begin
              showmessage(TIdText(IdMessage.MessageParts.Items[fAttach]).Body.Text);
                    >> Shows Text on inner Message <<
              TIdAttachment(IdMessage.MessageParts.Items[fAttach]).SaveToFile('XX.MSG')
                    >> blows up <<
          end;

Replies