From 66fbbac231b0385273b11f9b4c43ad252330dea5 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 26 Aug 2010 20:06:49 +0100 Subject: [PATCH] doveconf: When logging an obsolete warning, log a note about using doveconf. --- src/config/old-set-parser.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/config/old-set-parser.c b/src/config/old-set-parser.c index 76b10abf91..d602009a78 100644 --- a/src/config/old-set-parser.c +++ b/src/config/old-set-parser.c @@ -38,8 +38,15 @@ static const struct config_filter managesieve_filter = { static void ATTR_FORMAT(2, 3) obsolete(struct config_parser_context *ctx, const char *str, ...) { + static bool seen_obsoletes = FALSE; va_list args; + if (!seen_obsoletes) { + i_warning("NOTE: You can get a new clean config file with: " + "doveconf -n > dovecot-new.conf"); + seen_obsoletes = TRUE; + } + va_start(args, str); i_warning("Obsolete setting in %s:%u: %s", ctx->cur_input->path, ctx->cur_input->linenum, -- 2.47.3