Fixed off-by-one in email handler.