Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 2b7fac8f authored by rswindell's avatar rswindell

spamlog() now takes an action parameter (it's not always "REJECT").

parent 44af79c8
......@@ -67,7 +67,8 @@ extern "C" BOOL DLLCALL hacklog(scfg_t* cfg, char* prot, char* user, char* text,
return(TRUE);
}
extern "C" BOOL DLLCALL spamlog(scfg_t* cfg, char* prot, char* reason, char* host, char* ip_addr, char* to)
extern "C" BOOL DLLCALL spamlog(scfg_t* cfg, char* prot, char* action,
char* reason, char* host, char* ip_addr, char* to)
{
char hdr[512];
char to_user[128];
......@@ -86,8 +87,9 @@ extern "C" BOOL DLLCALL spamlog(scfg_t* cfg, char* prot, char* reason, char* hos
else
sprintf(to_user,"to: %s",to);
sprintf(hdr,"SUSPECTED %s SPAM REJECTED on %.24s\r\nFrom: %s [%s] %s\r\nReason: "
sprintf(hdr,"SUSPECTED %s SPAM %s on %.24s\r\nFrom: %s [%s] %s\r\nReason: "
,prot
,action
,timestr(cfg,&now,tstr)
,host
,ip_addr
......
......@@ -812,7 +812,7 @@ extern "C" {
/* logfile.cpp */
DLLEXPORT BOOL DLLCALL hacklog(scfg_t* cfg, char* prot, char* user, char* text
,char* host, SOCKADDR_IN* addr);
DLLEXPORT BOOL DLLCALL spamlog(scfg_t* cfg, char* prot, char* reason
DLLEXPORT BOOL DLLCALL spamlog(scfg_t* cfg, char* prot, char* action, char* reason
,char* host, char* ip_addr, char* to);
DLLEXPORT char * DLLCALL remove_ctrl_a(char* instr, char* outstr);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment