Renamed struct email -> mail, changed function declarations to match.