mirror of
https://github.com/simple-login/app.git
synced 2024-11-11 01:42:54 +08:00
add warning log
This commit is contained in:
parent
7a22b58f19
commit
38a6bcc461
1 changed files with 1 additions and 0 deletions
|
@ -498,6 +498,7 @@ def get_spam_from_header(spam_status_header, max_score=None) -> (bool, str):
|
||||||
)
|
)
|
||||||
score = float(score_section[len("score=") :])
|
score = float(score_section[len("score=") :])
|
||||||
if score >= max_score:
|
if score >= max_score:
|
||||||
|
LOG.warning("Spam score %s exceeds %s", score, max_score)
|
||||||
return True, spam_status_header
|
return True, spam_status_header
|
||||||
|
|
||||||
return spamassassin_answer.lower() == "yes", spam_status_header
|
return spamassassin_answer.lower() == "yes", spam_status_header
|
||||||
|
|
Loading…
Reference in a new issue