ignore malformed email callbacks

and tests