[Dovecot] LDA null logging patch

Joseph Tam jtam.home at gmail.com
Sat Apr 16 13:04:47 EEST 2011


I don't really need logging of successful local deliveries since the MTA
provides enough data.  I can't get rid of LDA delivery logs by setting

 	deliver_log_format =

All this does is produce an empty log message e.g.

 	Apr 16 01:22:05 dserver dovecot: lda(user):

Timo, would you consider inclusion of this patch which will skip
logging deliveries if deliver_log_format is empty:

--- src/lib-lda/mail-deliver.c~	Sat Apr 16 01:27:23 2011
+++ src/lib-lda/mail-deliver.c	Sat Apr 16 01:29:05 2011
@@ -100,2 +100,5 @@

+	if (!(ctx->set->deliver_log_format) || !(*ctx->set->deliver_log_format))
+		return;
+
  	va_start(args, fmt);

Joseph Tam <jtam.home at gmail.com>


More information about the dovecot mailing list