Electron-phonon interaction in one dimension: Exact spectral properties