add the possibility to only stream the doc with attachments infos.