dovecot-2.0-sieve: Spamtest extension: fixed result when over th...
pigeonhole at rename-it.nl
pigeonhole at rename-it.nl
Fri Jan 8 00:58:44 EET 2010
details: http://hg.rename-it.nl/dovecot-2.0-sieve/rev/a6bd9a3fd5dc
changeset: 1179:a6bd9a3fd5dc
user: Stephan Bosch <stephan at rename-it.nl>
date: Sun Jan 03 21:41:21 2010 +0100
description:
Spamtest extension: fixed result when over the maximum score.
diffstat:
src/lib-sieve/plugins/spamvirustest/ext-spamvirustest-common.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r dac6ab7cd623 -r a6bd9a3fd5dc src/lib-sieve/plugins/spamvirustest/ext-spamvirustest-common.c
--- a/src/lib-sieve/plugins/spamvirustest/ext-spamvirustest-common.c Sun Jan 03 19:26:23 2010 +0100
+++ b/src/lib-sieve/plugins/spamvirustest/ext-spamvirustest-common.c Sun Jan 03 21:41:21 2010 +0100
@@ -527,6 +527,11 @@
/* Calculate value */
if ( status_value < 0 ) {
value = 1;
+ } else if ( status_value > max_value ) {
+ if ( percent )
+ value = 100;
+ else
+ value = 10;
} else {
if ( percent )
value = (status_value / max_value) * 99 + 1;
More information about the dovecot-cvs
mailing list