Skip to content
Snippets Groups Projects
Commit 9cadf9e3 authored by rswindell's avatar rswindell
Browse files

Added subject trashcan checking (spam filtering).

parent dfc8bc11
No related branches found
No related tags found
No related merge requests found
......@@ -398,6 +398,11 @@ for(i in area) {
}
if(hdr.id.indexOf('@' + system.inetaddr)!=-1) // avoid dupe loop
continue;
if(system.trashcan("subject",hdr.subject)) {
printf("!BLOCKED subject: %s",hdr.subject);
continue;
}
hdr.from_net_type=NET_INTERNET;
// hdr.from_net_addr=hdr.from;
body += tearline;
......
......@@ -423,6 +423,12 @@ while(client.socket.is_connected) {
}
}
if(system.trashcan("subject",hdr.subject)) {
log(format("!BLOCKED subject: %s",hdr.subject));
writeln("441 posting failed");
break;
}
for(n in newsgroups)
for(g in msg_area.grp_list)
for(s in msg_area.grp_list[g].sub_list)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment