Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
in Q2A Core by
I do not want to remove the private messages.

But a spammer should not be able to send messages to everyone.
I found a temporary solution (for activated moderation):
File: qa-include/pages/message.php  (in 1.7).
If you are facing the same problem, enable moderation and add code of Sama55.

1 Answer

+2 votes
selected by
Best answer
I think the only way currently would be to add some custom code to qa-include/pages/message.php around line 127 that checks if the person sending the message is favourited by the user they're sending to.

One alternative would be to override the qa_send_notification function using an override plugin and not send the email if they're not favourited, or if the sender has too few points.