summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d13d3f1)
raw | patch | inline | side by side (parent: d13d3f1)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 18 May 2007 15:08:19 +0000 (17:08 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 18 May 2007 15:08:19 +0000 (17:08 +0200) |
src/email.c | patch | blob | history |
diff --git a/src/email.c b/src/email.c
index 5d011d36c24e3fc8ba41d5f8a1946cfc490939a2..039c5853ed6b57e4018b420d7d56945f889c48d4 100644 (file)
--- a/src/email.c
+++ b/src/email.c
{
type_t *ptr;
- double sc;
+ double score_old;
+ int score_count_old;
static type_list_t *cnt;
static type_list_t *sz;
/* spam score */
pthread_mutex_lock (&score_mutex);
- sc = score;
+ score_old = score;
+ score_count_old = score_count;
score = 0.0;
score_count = 0;
pthread_mutex_unlock (&score_mutex);
- email_submit ("spam_score", "", sc);
+ if (score_count_old > 0)
+ email_submit ("spam_score", "", score_old);
/* spam checks */
pthread_mutex_lock (&check_mutex);