dovecot-2.0: doveadm: Added config dependency to mail_user setti...

dovecot at dovecot.org dovecot at dovecot.org
Thu May 27 23:03:50 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/d7b9712d1dfc
changeset: 11401:d7b9712d1dfc
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 27 21:03:36 2010 +0100
description:
doveadm: Added config dependency to mail_user settings.
If doveadm gets the configuration by execing doveconf, it won't get these
settings without the dependency.

diffstat:

 src/doveadm/doveadm-settings.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 34621611fb33 -r d7b9712d1dfc src/doveadm/doveadm-settings.c
--- a/src/doveadm/doveadm-settings.c	Thu May 27 20:55:45 2010 +0100
+++ b/src/doveadm/doveadm-settings.c	Thu May 27 21:03:36 2010 +0100
@@ -2,6 +2,7 @@
 
 #include "lib.h"
 #include "settings-parser.h"
+#include "mail-storage-settings.h"
 #include "doveadm-settings.h"
 
 #undef DEF
@@ -25,6 +26,11 @@
 	.plugin_envs = ARRAY_INIT
 };
 
+static const struct setting_parser_info *doveadm_setting_dependencies[] = {
+	&mail_user_setting_parser_info,
+	NULL
+};
+
 const struct setting_parser_info doveadm_setting_parser_info = {
 	.module_name = "doveadm",
 	.defines = doveadm_setting_defines,
@@ -33,7 +39,8 @@
 	.type_offset = (size_t)-1,
 	.struct_size = sizeof(struct doveadm_settings),
 
-	.parent_offset = (size_t)-1
+	.parent_offset = (size_t)-1,
+	.dependencies = doveadm_setting_dependencies
 };
 
 const struct doveadm_settings *doveadm_settings;


More information about the dovecot-cvs mailing list