Update email.c

fixed base compare function