Judge plugs 'private email' loophole in CA public records law