Influence of correlations and of the core hole on metal x ray spectra