From 4583ec5f996617b9f20785c22a772f6448c4b584 Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Sun, 3 Jan 2010 23:22:25 +0100
Subject: [PATCH] Spamtest extension: fixed small bug in yesno-type spam header
 matching.

---
 src/lib-sieve/plugins/spamvirustest/ext-spamvirustest-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib-sieve/plugins/spamvirustest/ext-spamvirustest-common.c b/src/lib-sieve/plugins/spamvirustest/ext-spamvirustest-common.c
index b09090674..0fe4de4fd 100644
--- a/src/lib-sieve/plugins/spamvirustest/ext-spamvirustest-common.c
+++ b/src/lib-sieve/plugins/spamvirustest/ext-spamvirustest-common.c
@@ -263,7 +263,7 @@ static bool ext_spamvirustest_config_load
 	} else if ( strcmp(status_type, "strlen") == 0 ) {
 		ext_data->status_type = EXT_SPAMVIRUSTEST_STATUS_TYPE_STRLEN;
 	} else if ( strcmp(status_type, "yesno") == 0 ) {
-		ext_data->status_type = EXT_SPAMVIRUSTEST_STATUS_TYPE_STRLEN;
+		ext_data->status_type = EXT_SPAMVIRUSTEST_STATUS_TYPE_YESNO;
 	} else {
 		sieve_sys_error("%s: invalid status type '%s'", ext_name, status_type);
 		return FALSE;
-- 
GitLab