2010-01-06, 12:47 PM
I'm trying to write a simple spam filter that will check the message in the postbit, compare it with a database of known phrases etc. that spammers use and then, if found, delete the post automatically.
Checking the message in the postbit is no problem but I've run into a small problem when it come to deleting the post.
I've found the function delete_post(pid,tid) but don't seem to be able to get it to work.
Any ideas?
Checking the message in the postbit is no problem but I've run into a small problem when it come to deleting the post.
I've found the function delete_post(pid,tid) but don't seem to be able to get it to work.
Any ideas?