Use BODY.PEEK[] instead of BODY[] for downloading attachments.