pinax/django-mailer — pull request #2 by hashstat (2012-07-21 20:28:16+00:00)
Title: Simple throttling support

Added support to supply a send rate in the settings file to limit the number of messages sent per second. By default, no throttling will occur. Throttling can be enabled by setting MAILER_SEND_RATE to the number of messages that may be sent per second. For instance, setting MAILER_SEND_RATE to 1 will limit sending to 1 message per second, 10 will limit to 10 messages per second, and 0.1666 (1/6) will limit to 1 message about every 6 seconds. Omitting MAILER_SEND_RATE or setting it to zero, None, or a negative value will disable throttling.

This changeset does not take into account the time it takes to send a message, it only calculates a simple delay between sends.