Indy 10 IdSMTServer- How to extract The Header and The Message

Giganews Newsgroups
Subject: Indy 10 IdSMTServer- How to extract The Header and The Message
Posted by:  Anti-Tux (antit…@antitux.de)
Date: Fri, 21 Jan 2005

Hi There,

I have Indy 10 using the IdSMTPServer

procedure TForm1.IdSMTPServer1MsgReceive(ASender: TIdSMTPServerContext;
  AMsg: TStream; var LAction: TIdDataReply);

on MsgReceive I will get only the RAW Mail, which I storge in aMemo

  memo1.lines.loadfromstream(amsg);

Now my Question:

How can I seperate the message and the header? In Indy 9 there was now
problem.

brgds

AntiTux

Replies