smtp.c: fix enumerated type mixed with another type