mirror of
https://github.com/simple-login/app.git
synced 2024-11-13 07:31:12 +01:00
set SpamAssassin timeout to 300s
This commit is contained in:
parent
770b15aba3
commit
6253a4eb23
1 changed files with 2 additions and 1 deletions
|
@ -1510,7 +1510,8 @@ def get_spam_score(message: Message) -> float:
|
|||
sa_input += b"\n"
|
||||
|
||||
try:
|
||||
sa = SpamAssassin(sa_input, host=SPAMASSASSIN_HOST)
|
||||
# wait for at max 300s which is the default spamd timeout-child
|
||||
sa = SpamAssassin(sa_input, host=SPAMASSASSIN_HOST, timeout=300)
|
||||
return sa.get_score()
|
||||
except Exception:
|
||||
LOG.exception("SpamAssassin exception")
|
||||
|
|
Loading…
Reference in a new issue