Using TIdMesage.LoadFromStream

Giganews Newsgroups
Subject: Using TIdMesage.LoadFromStream
Posted by:  Christian Kaufmann (christian.kaufma…
Date: Tue, 17 Feb 2004


I want to use TIdMessage.LoadFromStream to read all emails from a
Mozilla mail file.

I already fail to read the first email from the file. The call to
LoadFrom Stream never returns, except when I set HeadersOnly to true.

Then I read that LoadFromStream does not change the position in my
file steam. But how do I know the size of the email read in order to
update the file stream position to read the next email ?

I use Indy 9.0.11 and D6

cu Christian