From: Vsevolod Stakhov Date: Fri, 29 Oct 2010 14:43:34 +0000 (+0400) Subject: Parse smtp_use_xclient option in config X-Git-Tag: 0.3.3~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=45352c2f76795884a956ec129d5d8a7bcbfd64bd;p=rspamd.git Parse smtp_use_xclient option in config --- 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); }