[FIX] mail: misc bug fixing

Ok.