--- src/dspam.c 2006-05-30 11:03:55.000000000 -0400 +++ src/dspam.c.new 2006-11-02 15:28:45.000000000 -0500 @@ -51,6 +51,7 @@ #include #include #include +#include #ifdef _WIN32 #include @@ -1994,11 +1995,11 @@ nt_add(ATX->results, presult); else free(presult); - LOGDEBUG ("DSPAM Instance Shutdown. Exit Code: %d", return_code); + LOGDEBUG ("DSPAM Instance Shutdown. Exit Code: %d", retcode); buffer_destroy(parse_message); } - return return_code; + return retcode; } // break // load_agg @@ -2321,8 +2321,8 @@ while (user != NULL) { - if (!strcmp (user, username) || user[0] == '*' || - (!strncmp(user, "*@", 2) && !strcmp(user+2, strchr(username,'@')))) + if (!strcmp (user, username) || (user[0] == '*' && strncmp(user, "*@", 2)) || + (!strncmp(user, "*@", 2) && !strcmp(user+1, strchr(username,'@')))) { /* If we're reporting a spam, report it as a spam to all other