Understanding email threats: The foundation of email security