Now takes into account all messages (even those sent but not acked)
Now sends a mail when a queue is back to normal. + Cleanup