Of course, this is not yet relevant, but I believe that I will share with those who stumble about it in the future, as I do.
For ItemAttachments you need to load the MimeContent for the item, then you can simply write to the file / output [".eml", ".msg"]:
if (attachment is FileAttachment) { FileAttachment fileAttachment = attachment as FileAttachment;
source share