Switched processing to run on a timed interval to avoid mail errors

Previous implementation processed messages too fast, causing mail server
errors with a large amount of messages. New implementation processes
messages on a timed interval (current 1 second) to avoid errors.