From: Paul Miller <pmiller9@us...> - 2003-11-21 06:53:49
On Thursday 20 November 2003 8:42 pm, AthlonRob wrote:
> Hey, cool... you're getting somewhere. :-)
> Out of curiosity, what algorithm did you end up using in determining
> if something is spam or not?
It checks for a link in all messages for 30 seconds after the first
message is received, provided that the sender is not in the buddy list.
If no links are found, all the messages are "received" as if they were
without the plugin. This checking is only done when a new conversation
window would be created (ie, no lag time after we've determine the
sender is buddy).
The timeout and whether or not to log spam messages are configurable
(no UI though).
There are two problems though -
1) The antispam plugin needs to execute first in the "received-im-msg"
callback queue and terminate further processing if needed. Gaim does
not handle this as I would expect. If you're not running a plugin that
uses this callback, it's not a problem.
2) I defined my own message flag such that the plugin would know if the
received message is sent by the plugin itself such that it doesn't go
into an infinite loop. No Gaim patch required, but it's kind of ugly.
Get latest updates about Open Source Projects, Conferences and News.