dovecot-1.1: deliver: Ignore !include_try, give error if !includ...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Nov 19 19:43:24 EET 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/313d1195318f
changeset: 8017:313d1195318f
user: Timo Sirainen <tss at iki.fi>
date: Wed Nov 19 19:43:21 2008 +0200
description:
deliver: Ignore !include_try, give error if !include is tried to be used.
diffstat:
1 file changed, 7 insertions(+)
src/deliver/deliver.c | 7 +++++++
diffs (17 lines):
diff -r 5f471f5b06d2 -r 313d1195318f src/deliver/deliver.c
--- a/src/deliver/deliver.c Wed Nov 19 19:37:26 2008 +0200
+++ b/src/deliver/deliver.c Wed Nov 19 19:43:21 2008 +0200
@@ -361,6 +361,13 @@ static void config_file_init(const char
while (IS_WHITE(line[len-1]))
len--;
line[len] = '\0';
+
+ if (strncmp(line, "!include_try ", 13) == 0)
+ continue;
+ if (strncmp(line, "!include ", 9) == 0) {
+ i_fatal_status(EX_CONFIG, "Error in config file %s: "
+ "deliver doesn't support !include directive", path);
+ }
value = p = strchr(line, '=');
if (value == NULL) {
More information about the dovecot-cvs
mailing list