handle emails of different cases