diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-10-29 18:43:34 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-10-29 18:43:34 +0400 |
commit | 45352c2f76795884a956ec129d5d8a7bcbfd64bd (patch) | |
tree | 0ba1cce2934d9089b16c7bc81bcb003c304512ba /src/smtp.c | |
parent | ee377f4020c25900067e2c11704650b30a0a9e45 (diff) | |
download | rspamd-45352c2f76795884a956ec129d5d8a7bcbfd64bd.tar.gz rspamd-45352c2f76795884a956ec129d5d8a7bcbfd64bd.zip |
Parse smtp_use_xclient option in config
Diffstat (limited to 'src/smtp.c')
-rw-r--r-- | src/smtp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/smtp.c b/src/smtp.c index 6cecb52e6..f2d2e790a 100644 --- a/src/smtp.c +++ b/src/smtp.c @@ -937,6 +937,9 @@ config_smtp_worker (struct rspamd_worker *worker) if ((value = g_hash_table_lookup (worker->cf->params, "smtp_capabilities")) != NULL) { make_capabilities (ctx, value); } + if ((value = g_hash_table_lookup (worker->cf->params, "smtp_use_xclient")) != NULL) { + ctx->use_xclient = parse_flag (value); + } if ((value = g_hash_table_lookup (worker->cf->params, "smtp_metric")) != NULL) { ctx->metric = memory_pool_strdup (ctx->pool, value); } |