For me privatemsg limit doesn't work. I've set the maximum message limit to 5 per hour and the message remaining warning level to 1.
The message appears when a user tries to send more than 5 messages, but nonetheless all messages are sent.
That way we've got a lot of spam in private messages.

Comments

mdroste’s picture

No one else with this problem?

artscoop’s picture

Hi,
Same problem here. It seems that this module was a one shot, useful at the time, there has been one release and then nada.
I might provide an update over this one, very soon.

The job of the update will be fixing what didn't work well earlier.
And adding some filters to the processing, eg. prevent the users from sending the same message too often in a row.

frankcarey’s picture

Status: Active » Postponed (maintainer needs more info)

What version of privatemsg are you using? Perhaps there are some API changes in the 2.x version of private messages. Berdir I know was working on the new branch, but perhaps he made a change in 1.x as well?

artscoop’s picture

Hi,
I think the API changes were backported to 1.x.

mdroste’s picture

I use 6.x-1x-dev

stmh’s picture

I experienced the same issue, seems to be related to changes in privatemsg. I could fix it by adding the validate-callback to the submit-btn:

--- privatemsg_limits.module	(Revision 1529)
+++ privatemsg_limits.module	(Arbeitskopie)
@@ -17,7 +17,8 @@
     privatemsg_limits_warning();
   }
   //add the additional validate function to the privatemsg_new form.
-  $form['#validate'][] = 'privatemsg_limits_form_privatemsg_new_validate';
+  $form['privatemsg']['submit']['#validate'][] = 'privatemsg_limits_form_privatemsg_new_validate';
 }