In it's simplest form, it would just be a permission that could be given per role (easy). An advanced form could allow per role limits and periods (more complex).

Comments

mgladding’s picture

I am also interested in this feature. I would like the admin role to be able to send as many messages as they please, but limit the number other roles could send.

frankcarey’s picture

I'll take a look and try to implement this.

stmh’s picture

Here's a patch to bypass the module via a permission:

Index: privatemsg_limits/privatemsg_limits.module
===================================================================
--- privatemsg_limits/privatemsg_limits.module	(Revision 1532)
+++ privatemsg_limits/privatemsg_limits.module	(Arbeitskopie)
@@ -8,10 +8,19 @@
  * This module will limit the number of email that can be sent out per user per period of time.
  */
 
+
+function privatemsg_limits_perm() {
+	return array('no messaging limits');
+}
+
 /**
  * Implementation of hook_form_FORM_ID_alter().
  */
 function privatemsg_limits_form_privatemsg_new_alter(&$form, &$form_state) {
+	if(user_access('no messaging limits')) {
+		// user has right to send unlimited amount of messages
+  	return;
+  }
   if (empty($form_state['post'])) {
     //only show warnings when there isn't post content, #validate will take care of the rest.
     privatemsg_limits_warning();

HTH,
Stephan