Internet Direct (Indy)
Home
PreviousUpNext
TIdInterceptSimLog.Receive Method

Receives data and writes log entries for the intercept.

Pascal
procedure Receive(
    var ABuffer: TIdBytes
); override;
Parameters 
Description 
ABuffer 
Buffer containing data from the connection for the intercept. 

Receive is an overridden procedure used to capture data and write log entries for the intercept. ABuffer contains the data read from the connection for the intercept. 

Receive calls the inherited method, and writes a log entry to the file indicated in Filename. Log entries include the operation performed followed by the contents in ABuffer (minus any binary characters). A blank line is written between log file entries. 

For example: 

 

Recv:EOL
220 mail..com (IMail 8.00 6073-1) NT-ESMTP Server X1

Send:EOL
EHLO Kudzu

Recv:Bytes:135
250-mail.bogus.com says hello
250-SIZE 0
250-8BITMIME
250-DSN
250-ETRN
250-AUTH LOGIN CRAM-MD5
250-AUTH=LOGIN
250 EXPN

Send:EOL
RSET

Recv:EOL
250 ok its reset

Send:EOL
MAIL FROM:<john@doe.org>

Recv:EOL
250 ok

Send:EOL
RCPT TO:<jane@doe.org>

Recv:EOL
250 ok its for <jane@doe.org>

Send:EOL
DATA

Recv:EOL
354 ok, send it; end with <CRLF>.<CRLF>

Send:Bytes:133
From: "John Doe" <john@doe.org>
Subject: Test
To: jane@doe.org
In-Reply-To: Test
Date: Sun, 5 Jan 1975 00:00:00 +0200

Send:EOL

Send:EOL
Test Message

Send:EOL

Send:EOL
.

Recv:EOL
250 Message queued

Send:EOL
QUIT

Recv:EOL
221 Goodbye
Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.