comparison src/context.cpp @ 445:78eedbbce636

round spamassassin scores; check >= rather than >
author Carl Byington <carl@five-ten-sg.com>
date Mon, 19 Feb 2018 15:25:40 -0800
parents 1686cb639269
children d4275f26241c
comparison
equal deleted inserted replaced
444:9bb6af6ca26c 445:78eedbbce636
1371 return token_black; 1371 return token_black;
1372 } 1372 }
1373 } 1373 }
1374 } 1374 }
1375 1375
1376 if (spamassassin_limit && (score > spamassassin_limit)) { 1376 if (spamassassin_limit && (score >= spamassassin_limit)) {
1377 char buf[maxlen]; 1377 char buf[maxlen];
1378 snprintf(buf, sizeof(buf), "Mail rejected - spam assassin score %d", score); 1378 snprintf(buf, sizeof(buf), "Mail rejected - spam assassin score %d", score);
1379 msg = string(buf); 1379 msg = string(buf);
1380 return token_black; 1380 return token_black;
1381 } 1381 }