Having wasted few hours looking at ICQ flood/spam, I spent 30 minutes watching the code.
To make kopete ignore ICQ/oscar messages from users not in contact list, you need to patch
protocols/oscar/oscaraccount.cpp and re-compile it.
That will be not configurable, i.e. permanent change.
Patch follows:
--- oscaraccount.cpp.orig Mon Jan 15 14:23:51 2007
+++ oscaraccount.cpp Tue Jul 3 15:05:25 2007
@@ -388,8 +388,9 @@
QString sender = Oscar::normalize( message.sender() );
if ( !contacts()[sender] )
{
- kdDebug(OSCAR_RAW_DEBUG) << "Adding '" << sender << "' as temporary contact" << endl;
- addContact( sender, QString::null, 0, Kopete::Account::Temporary );
+// Violet: ignore messages from anybody not in contact list
+ kdDebug(OSCAR_RAW_DEBUG) << "Ignoring message from '" << sender << endl;
+ return;
}
OscarContact* ocSender = static_cast<OscarContact *> ( contacts()[sender] ); //should exist now