diff src/doveadm/doveadm-settings.c @ 11395:07c9d1115029 HEAD

doveadm: mail commands can now be extended more easily by plugins. Also plugins can now override the list of -A users.
author Timo Sirainen <tss@iki.fi>
date Thu, 27 May 2010 19:59:39 +0100
parents 43a5acc09eb8
children d7b9712d1dfc
line wrap: on
line diff
--- a/src/doveadm/doveadm-settings.c	Thu May 27 19:27:18 2010 +0100
+++ b/src/doveadm/doveadm-settings.c	Thu May 27 19:59:39 2010 +0100
@@ -12,6 +12,7 @@
 	DEF(SET_STR, base_dir),
 	DEF(SET_STR, mail_plugins),
 	DEF(SET_STR, mail_plugin_dir),
+	{ SET_STRLIST, "plugin", offsetof(struct doveadm_settings, plugin_envs), NULL },
 
 	SETTING_DEFINE_LIST_END
 };
@@ -19,7 +20,9 @@
 const struct doveadm_settings doveadm_default_settings = {
 	.base_dir = PKG_RUNDIR,
 	.mail_plugins = "",
-	.mail_plugin_dir = MODULEDIR
+	.mail_plugin_dir = MODULEDIR,
+
+	.plugin_envs = ARRAY_INIT
 };
 
 const struct setting_parser_info doveadm_setting_parser_info = {