Lots of cleanups after observing email failures
Date format and message id fixes per whiny gmail smtp server