mysql: reduce log spam and broken emails