|Subject:||Re: Indy 10 IdSMTServer- How to extract The Header and The Message|
|Posted by:||Remy Lebeau (TeamB) (email@example.com)|
|Date:||Fri, 21 Jan 2005|
"Anti-Tux" <antit…@antitux.de> wrote in message
> on MsgReceive I will get only the RAW Mail, which I storge
> in aMemo
You cannot safely do that. The event handler can be triggered in the
context of a worker thread, not the main thread. As such, you need to use
the TIdSync class to synchronize all access to the GUI in a thread-safe
> How can I seperate the message and the header?
The headers are separated from the body by a blank line.
> In Indy 9 there was now problem.
That is because Indy 9 offered several different types of events that
attempted to process the data for you. In Indy 10, you have to process it
Indy 10 IdSMTServer- How to extract The Header and The Message posted by Anti-Tux on Fri, 21 Jan 2005