Finite and infinite arithmetic progressions in sumsets