From 932b1315504b5c2b700742d508f09bacbc6043fc Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 19 Jun 2012 21:10:44 +0400 Subject: [PATCH] Log smtp FROM in urls output if smtp user is not defined. --- src/protocol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protocol.c b/src/protocol.c index fc03acacb..522b77136 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -694,7 +694,8 @@ urls_protocol_cb (gpointer key, gpointer value, gpointer ud) if (cb->task->cfg->log_urls) { msg_info ("<%s> URL: %s - %s: %s", cb->task->message_id, cb->task->user ? - cb->task->user : "unknown", inet_ntoa (cb->task->client_addr), struri (url)); + cb->task->user : (cb->task->from ? cb->task->from : "unknown"), + inet_ntoa (cb->task->client_addr), struri (url)); } return FALSE; -- 2.39.5