Mercurial > dnsbl
comparison src/spamass.cpp.in @ 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 | 536d59c3a7b8 |
children | f5b394bec28c |
comparison
equal
deleted
inserted
replaced
444:9bb6af6ca26c | 445:78eedbbce636 |
---|---|
153 int SpamAssassin::mlfi_eom() | 153 int SpamAssassin::mlfi_eom() |
154 { | 154 { |
155 close_output(); // signal EOF to SpamAssassin | 155 close_output(); // signal EOF to SpamAssassin |
156 input(); // read what the Assassin is telling us | 156 input(); // read what the Assassin is telling us |
157 my_syslog(priv, "spamc returned " + spamc_output); | 157 my_syslog(priv, "spamc returned " + spamc_output); |
158 return atoi(spamc_output.c_str()); | 158 return int(round(atof(spamc_output.c_str()))); |
159 } | 159 } |
160 | 160 |
161 | 161 |
162 void SpamAssassin::Connect() | 162 void SpamAssassin::Connect() |
163 { | 163 { |