]> source.dussan.org Git - rspamd.git/commitdiff
Parse smtp_use_xclient option in config
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Fri, 29 Oct 2010 14:43:34 +0000 (18:43 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Fri, 29 Oct 2010 14:43:34 +0000 (18:43 +0400)
src/smtp.c

index 6cecb52e65c4f25e0cf6096f33fed4caeb018eb7..f2d2e790a406b3ed1a1e113082138c262e2a661e 100644 (file)
@@ -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);
        }