[prev in list] [next in list] [prev in thread] [next in thread]
List: kopete-devel
Subject: Re: [kopete-devel] Code to delete unwanted temporary contacts
From: "Richard Donkin \[rd9\]" <rd9 () donkin ! org>
Date: 2008-10-14 7:32:32
Message-ID: 48F44B10.908 () donkin ! org
[Download RAW message or body]
David Faure wrote:
> This simply means you should write msg.from()->deleteContact().
> (arrow instead of dot) but I have no idea about the contact api,
> I'll let someone else answer whether this is the right approach overall.
Thanks for the tip. I have now managed to get this to work - as soon as
a new spam message comes in, the contact and metacontact that it came
from are deleted. I think it would be really nice if this was an option
within Kopete, as Yahoo Messenger and similar have options to ban anyone
not on contacts list from contacting you. This is a good setting for
people who are a bit new to instant messaging (in my case, an elderly
relative) and only want to talk to a few contacts already on their
contacts list.
I will submit the patch to the author of the Antispam plugin. I based
the code on the patch at http://bugs.kde.org/show_bug.cgi?id=94057 -
this was a lot more helpful than the API docs. Patch available if
anyone's interested.
Cheers,
Richard
_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic