From 3a17efa4267ff1fbb2e1783b1ab7a48a2525d275 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 25 Aug 2004 22:57:22 +0000 Subject: Reset log line on HELO and EHLO --- src/clamsmtpd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/clamsmtpd.c b/src/clamsmtpd.c index 0a20777..e26ea07 100644 --- a/src/clamsmtpd.c +++ b/src/clamsmtpd.c @@ -754,6 +754,9 @@ static int smtp_passthru(clamsmtp_context_t* ctx) { messagex(ctx, LOG_DEBUG, "filtering EHLO response"); filter_ehlo = 1; + + /* A new message */ + logline[0] = 0; } /* @@ -782,7 +785,8 @@ static int smtp_passthru(clamsmtp_context_t* ctx) add_to_logline(logline, "to=", ctx->line + r); /* Reset log line */ - else if(is_first_word(ctx->line, RSET_CMD, KL(RSET_CMD))) + else if(is_first_word(ctx->line, RSET_CMD, KL(RSET_CMD)) || + is_first_word(ctx->line, HELO_CMD, KL(HELO_CMD))) logline[0] = 0; /* All other commands just get passed through to server */ -- cgit v1.2.3