|Subject:||Re: NNTP Server|
|Posted by:||Remy Lebeau (TeamB) (firstname.lastname@example.org)|
|Date:||Tue, 30 Dec 2003|
"Clément Doss" <email@example.com> wrote in message
> BeforeCommandHandler fired. POST
When the server receives the POST command, it will trigger the OnPost event.
You are supposed to read the message data from the connection at that point.
The simpliest way to do that is to call the connection's Capture() method,
procedure TForm1.IdNNTPServer1Post(AThread: TIdNNTPThread; var VPostOk:
Boolean; var VErrorText: string);
Data := TStringList.Create;
// use Data as needed
> Is there any particular event that fires when all the message
> is received and ready for storage?
No, because TIdNNTPServer does not read the actual message data for you, you
are supposed to handle that yourself. That is because TIdNNTPServer has no
concept of how the server will decide how it wants to store the data. It
allow allows the server to decide whether posting is even allowed or not, on
a per-message basis, before the actual reading occurs.
NNTP Server posted by Clément Doss on Tue, 30 Dec 2003