On Rayleigh-Schrödinger and green's-function calculations of ionization potentials and electron affinities