Fix duplicate emails bug

This occurred whenever two emails in the same thread had the exact same unix_time.