mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 07:43:54 +08:00
add spam score processing time for forward phase
This commit is contained in:
parent
ffa9304d00
commit
0bb10d8fc3
1 changed files with 8 additions and 1 deletions
|
@ -446,8 +446,15 @@ async def forward_email_to_mailbox(
|
|||
is_spam = False
|
||||
|
||||
if SPAMASSASSIN_HOST:
|
||||
start = time.time()
|
||||
spam_score = await get_spam_score(msg)
|
||||
LOG.d("%s -> %s spam score %s", contact, alias, spam_score)
|
||||
LOG.d(
|
||||
"%s -> %s - spam score %s in %s seconds",
|
||||
contact,
|
||||
alias,
|
||||
spam_score,
|
||||
time.time() - start,
|
||||
)
|
||||
email_log.spam_score = spam_score
|
||||
db.session.commit()
|
||||
|
||||
|
|
Loading…
Reference in a new issue