How to enable Privacy for Messages?

I am using the elgg/mod/messages in Elgg 1.9.4
It is an excellent plugin for internal messaging and does things very neatly.
However I am just looking for one option:
How does an unwilling end-user/site-member say no to Messages? For example, he does not want to receive any message at all or wants to receive messages from friends only?
Is there any plugin/mod that extends this functionality? Can any simple check be put on incoming messages in the mod itself?
Thanks.

  • which mod you have ? send me a ref.

  • As far as we remember, there exists no ready to use plugin for the same. But creating such a plugin is not a complicated task.

    You can hook into the user entity menu setup and remove the message menu if the logged in user is not a friend of the profile owner. Also you can hook into the message send action to perform this check again, in case some one tries to send messages via crafted urls.

  • I'm almost finished with updating my Private Profile plugin. I've added the option to block sending of messages or restrict it to friends only. I want to modify the usersettings page and I need to do some testing before I can release the new version. I hope to be able to do the release next week.