We'll create fresh WordPress site with BuddyPress Restrict Messages installed. You have 20 minutes to test the plugin after that site we'll be deleted.
This plugin is perfect for private message spam prevention. It allows site admin and users themselves to limit exactly who can send messages to the user.
This plugin creates an admin settings page called Restrict Messages. Here the site admin can choose to impose global restrictions over who can send messages to the user.
If message restrictions are delegated to the user, a user settings page is created at Profile>>Settings>>Messages.
Each of these settings pages, depending on which is active, allows private messaging to be restricted to:
The public setting allows connections from all groups to send messages to the user, otherwise private or public stipulate only messages from these types of groups.
Once a restriction has been implements, the plugin removes the private message from the users profile, removes the usename from the compose message send to auto-complete and rejects any messages send where the send to includes an excluded user.
This plugin was originally created by Rich @etivite and is now supported by Venutius.