|
|
#include <sys/stat.h> | #include <sys/stat.h> |
#include <netdb.h> | #include <netdb.h> |
#include <sys/socket.h> | #include <sys/socket.h> |
|
#include <sysexits.h> |
| |
#ifdef _WIN32 | #ifdef _WIN32 |
#include <io.h> | #include <io.h> |
|
|
nt_add(ATX->results, presult); | nt_add(ATX->results, presult); |
else | else |
free(presult); | free(presult); |
LOGDEBUG ("DSPAM Instance Shutdown. Exit Code: %d", return_code); |
LOGDEBUG ("DSPAM Instance Shutdown. Exit Code: %d", retcode); |
buffer_destroy(parse_message); | buffer_destroy(parse_message); |
} | } |
| |
return return_code; |
return retcode; |
} | } |
// break | // break |
// load_agg | // load_agg |
|
|
| |
while (user != NULL) | while (user != NULL) |
{ | { |
if (!strcmp (user, username) || user[0] == '*' || |
if (!strcmp (user, username) || (user[0] == '*' && strncmp(user, "*@", 2)) || |
(!strncmp(user, "*@", 2) && !strcmp(user+2, strchr(username,'@')))) |
(!strncmp(user, "*@", 2) && !strcmp(user+1, strchr(username,'@')))) |
{ | { |
| |
/* If we're reporting a spam, report it as a spam to all other | /* If we're reporting a spam, report it as a spam to all other |