From f26a0dc3ffd9c4a927759d3505fbafb96f655a97 Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Sat, 26 Jan 2013 09:10:26 +0100
Subject: [PATCH] lib-sieve: Increased a few initial memory pool sizes.

---
 src/lib-sieve/plugins/editheader/ext-editheader-common.c | 2 +-
 src/lib-sieve/sieve-ast.c                                | 2 +-
 src/lib-sieve/sieve-binary.c                             | 2 +-
 src/lib-sieve/sieve-error.c                              | 4 ++--
 src/lib-sieve/sieve-validator.c                          | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/lib-sieve/plugins/editheader/ext-editheader-common.c b/src/lib-sieve/plugins/editheader/ext-editheader-common.c
index 25a600e21..1c2841cdc 100644
--- a/src/lib-sieve/plugins/editheader/ext-editheader-common.c
+++ b/src/lib-sieve/plugins/editheader/ext-editheader-common.c
@@ -64,7 +64,7 @@ bool ext_editheader_load
 	}
 
 	T_BEGIN {
-		pool = pool_alloconly_create("editheader_config", 512);
+		pool = pool_alloconly_create("editheader_config", 1024);
 		ext_config = p_new(pool, struct ext_editheader_config, 1);
 		ext_config->pool = pool;
 		ext_config->max_header_size = EXT_EDITHEADER_DEFAULT_MAX_HEADER_SIZE;
diff --git a/src/lib-sieve/sieve-ast.c b/src/lib-sieve/sieve-ast.c
index 923b0d2e2..24d83ced6 100644
--- a/src/lib-sieve/sieve-ast.c
+++ b/src/lib-sieve/sieve-ast.c
@@ -59,7 +59,7 @@ struct sieve_ast *sieve_ast_create
 	struct sieve_ast *ast;
 	unsigned int ext_count;
 
-	pool = pool_alloconly_create("sieve_ast", 16384);
+	pool = pool_alloconly_create("sieve_ast", 32768);
 	ast = p_new(pool, struct sieve_ast, 1);
 	ast->pool = pool;
 	ast->refcount = 1;
diff --git a/src/lib-sieve/sieve-binary.c b/src/lib-sieve/sieve-binary.c
index 07d1079c1..45ae9e8d8 100644
--- a/src/lib-sieve/sieve-binary.c
+++ b/src/lib-sieve/sieve-binary.c
@@ -43,7 +43,7 @@ struct sieve_binary *sieve_binary_create
 	const struct sieve_extension *const *ext_preloaded;
 	unsigned int i, ext_count;
 
-	pool = pool_alloconly_create("sieve_binary", 8192);
+	pool = pool_alloconly_create("sieve_binary", 16384);
 	sbin = p_new(pool, struct sieve_binary, 1);
 	sbin->pool = pool;
 	sbin->refcount = 1;
diff --git a/src/lib-sieve/sieve-error.c b/src/lib-sieve/sieve-error.c
index 30c2a2f57..11d9de7fb 100644
--- a/src/lib-sieve/sieve-error.c
+++ b/src/lib-sieve/sieve-error.c
@@ -1221,7 +1221,7 @@ struct sieve_error_handler *sieve_prefix_ehandler_create
 	if ( parent == NULL )
 		return NULL;
 
-	pool = pool_alloconly_create("sieve_prefix_error_handler", 256);
+	pool = pool_alloconly_create("sieve_prefix_error_handler", 512);
 	ehandler = p_new(pool, struct sieve_prefix_ehandler, 1);
 	sieve_error_handler_init_from_parent(&ehandler->handler, pool, parent);
 
@@ -1320,7 +1320,7 @@ struct sieve_error_handler *sieve_varexpand_ehandler_create
 		return parent;
 	}
 
-	pool = pool_alloconly_create("sieve_varexpand_error_handler", 1024);
+	pool = pool_alloconly_create("sieve_varexpand_error_handler", 2048);
 	ehandler = p_new(pool, struct sieve_varexpand_ehandler, 1);
 	sieve_error_handler_init_from_parent(&ehandler->handler, pool, parent);
 
diff --git a/src/lib-sieve/sieve-validator.c b/src/lib-sieve/sieve-validator.c
index 4e85b83e1..04b3318fd 100644
--- a/src/lib-sieve/sieve-validator.c
+++ b/src/lib-sieve/sieve-validator.c
@@ -150,7 +150,7 @@ struct sieve_validator *sieve_validator_create
 	const struct sieve_extension *const *ext_preloaded;
 	unsigned int i, ext_count;
 
-	pool = pool_alloconly_create("sieve_validator", 8192);
+	pool = pool_alloconly_create("sieve_validator", 16384);
 	valdtr = p_new(pool, struct sieve_validator, 1);
 	valdtr->pool = pool;
 
-- 
GitLab