]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
deliver: Ignore !include_try, give error if !include is tried to be used.
authorTimo Sirainen <tss@iki.fi>
Wed, 19 Nov 2008 17:42:46 +0000 (19:42 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 19 Nov 2008 17:42:46 +0000 (19:42 +0200)
--HG--
branch : HEAD

src/deliver/deliver.c

index bbd47a88f5d9487665df2b50a6046ba0fc72c475..85ea0db135d79b958d6c235d1e32db0e4347bdfb 100644 (file)
@@ -368,6 +368,13 @@ static void config_file_init(const char *path)
                        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) {
                        if (strchr(line, '{') != NULL) {