email: Tidied up result code variables

Tidied up result variables to be consistent in name, declaration order
and default values.