write history messages only if history enabled for namespace