diff --git a/dovecot/config_info.pl b/dovecot/config_info.pl new file mode 100644 index 000000000..0eb2470c5 --- /dev/null +++ b/dovecot/config_info.pl @@ -0,0 +1,16 @@ +require 'dovecot-lib.pl'; + +# config_post_save(&newconfig, &oldconfig) +# Called after the module's configuration has been saved +sub config_post_save +{ +my ($newconfig, $oldconfig) = @_; +my $f = $newconfig->{'add_config'}; +$f =~ s/^\s+|\s+$//g; +if ($f && $f =~ /^\// && !-r $f && !-e $f && !-l $f) { + &open_lock_tempfile(ADDCONF, ">$f"); + &close_tempfile(ADDCONF); + } +} + +1;