title: Log4J SMTP digest/aggregate emails?
body: <p>I have a JBOSS batch application that sometimes sends hundreds on emails in a minute to the same email address with Log4J errors.  This causes problems with Gmail, because it says we are sending emails too quickly for that gmail account.</p>
  
  <p>So I was wondering if there was a way to basically create a "digest" or "aggregate" email puts all the error logs in 1 email and sends that every 5 minutes.  So that way every 5 minutes we may get a large email, but at least we actually get the email instead of it being delayed for hours and hours by gmail servers rejecting it.</p>
  
  <p>I read <a href="http://www.mail-archive.com/logback-user@qos.ch/msg01514.html" rel="nofollow noreferrer">this post</a> that suggested something about using an evaluator to do that, but I couldn't see how that is configured in the Log4J xml configuration file.  It also seemed like it might not be able to "digest" all the logs into 1 email anyway.</p>
  
  <p>Has anyone done this before? Or know if it's possible?</p>