emersion / go-message

✉️ A streaming Go library for the Internet Message Format and mail messages
MIT License
382 stars 111 forks source link

Get attachment input stream #147

Closed mooijtech closed 2 years ago

mooijtech commented 2 years ago

Hello emersion,

Is it possible to get the attachment input stream and write it to a file? Even the base64 as a value would do as I could decode it and write it to a file.

Kind regards, Marten Mooij

emersion commented 2 years ago

Please don't use GitHub issues to ask questions. GitHub issues are for feature requests or bug reports only.

mooijtech commented 2 years ago

Alright, my apologies.

I just found that your library automatically decodes attachments into the Body so that solves my question. I should probably figure this out on my own instead of asking first, my bad.