From 422eec8af41f50da36b1ab4bad8f079c407fea71 Mon Sep 17 00:00:00 2001 From: Karl Fleischmann Date: Wed, 1 Mar 2023 14:42:37 +0100 Subject: [PATCH] config: Deprecate imap_id_log setting --- doc/example-config/conf.d/20-imap.conf | 3 --- src/config/old-set-parser.c | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/example-config/conf.d/20-imap.conf b/doc/example-config/conf.d/20-imap.conf index e60b0cdf93..c92afdd154 100644 --- a/doc/example-config/conf.d/20-imap.conf +++ b/doc/example-config/conf.d/20-imap.conf @@ -47,9 +47,6 @@ # revision. #imap_id_send = -# ID fields sent by client to log. * means everything. -#imap_id_log = - # Workarounds for various client bugs: # delay-newmail: # Send EXISTS/RECENT new mail notifications only when replying to NOOP diff --git a/src/config/old-set-parser.c b/src/config/old-set-parser.c index fa04c3578e..e93a51da4b 100644 --- a/src/config/old-set-parser.c +++ b/src/config/old-set-parser.c @@ -356,6 +356,12 @@ old_settings_handle_root(struct config_parser_context *ctx, value); return TRUE; } + if (strcmp(key, "imap_id_log") == 0) { + obsolete(ctx, + "'imap_id_log' has been removed. Use event exporter " + "for the 'imap_id_received' event instead."); + return TRUE; + } return FALSE; } -- 2.47.3