From e10b9eeb405eb0e0a4405da732153eaa94c85b7b Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Thu, 4 Jun 2026 22:29:47 +0200 Subject: [PATCH] Fix to treat Dovecot `add_config` as a single file --- dovecot/dovecot-lib.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dovecot/dovecot-lib.pl b/dovecot/dovecot-lib.pl index 68d5f5941..acc698a04 100755 --- a/dovecot/dovecot-lib.pl +++ b/dovecot/dovecot-lib.pl @@ -26,7 +26,9 @@ return undef; # directives sub get_add_config_file { -foreach my $f (split(/\s+/, $config{'add_config'})) { +my $f = $config{'add_config'}; +$f =~ s/^\s+|\s+$//g; +if ($f) { return $f if (-r $f); } return &get_config_file();