]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveconf: When logging an obsolete warning, log a note about using doveconf.
authorTimo Sirainen <tss@iki.fi>
Thu, 26 Aug 2010 19:06:49 +0000 (20:06 +0100)
committerTimo Sirainen <tss@iki.fi>
Thu, 26 Aug 2010 19:06:49 +0000 (20:06 +0100)
src/config/old-set-parser.c

index 76b10abf91e2b9ebaf60e22836a5397f8b82ac13..d602009a7898f1cedffbdf3cbaa9a28496b71b05 100644 (file)
@@ -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,