On Friday 21 November 2003 1:11 am, AthlonRob wrote:
> On Thu, 2003-11-20 at 22:19, Paul Miller wrote:
> > It checks for a link in all messages for 30 seconds after the first
> > =0D 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).
> Cool.... I like it. I'm glad somebody has the necessary skills to
> put=0D together the idea!
> I just started CS161 about eight weeks ago... other than that, all
> I've=0D done is bash scripting. Now I can do a little C++ (which looks
> very similar to the C I've looked at).
> > The timeout and whether or not to log spam messages are
> > configurable (no =0D UI though).
> I'll glance at other plugins and see how they wrote their UIs. I
> definitely can't guarantee I'll be even capable of putting something
> together, but I know you said you hate writing UIs, so I'll see if I
> can=0D cobble something together. It should be a good learning
Any help is welcome! It should be straight forward for this plugin --=20
only a couple options, and similar to some of Gaim's included plugins. =20
I just hate making it look pretty.
> > There are two problems though -
> After only posting the idea about a day ago, I'm impressed there are
> only two. :-)
Seems to work so far. I haven't filled in the log spam function, but=20
other than that and the UI, it's mostly ready for others to test.
> > 1) The antispam plugin needs to execute first in the
> > "received-im-msg" =0D 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.
> Hence your post on the gaim-dev list. The only plugins I,
> personally,=0D use are the log, idle, and rarely the encryption
> plugins. So I don't think it'll be a problem for me, personally.
> If somebody was running another plugin that used the callback, what
> would happen? Would they message be received by the UI, forming a
> window, before the antispam plugin had a chance to activate?
No, the window won't pop up. I'm using the Gaim OSD plugin (http://
gaimosd.sf.net), which displays "on-screen display" text over my=20
desktop when I receive a message. It hooks into the same signal, but=20
can run before the antispam callback is run, thus displaying the=20
received message anyways. If the timeout delay is significant, the=20
message is displayed twice for no spam.