Node Imap - How to find and save emails and their attachments
Asked Answered
C

1

0

While using this module Node imap I wonder how to download not only the emails but also the attachments. Nowhere to be found some simple example that shows how to do this.

Crenelate answered 26/8, 2015 at 20:25 Comment(1)
Does this answer your question? How to read and save attachments using node-imapGoolsby
C
0

Based on an example provided by the module author, I managed to put together some code that fetches the unread messages and then gets the content plus the attachments. Couldn't find a full example of what I needed anywhere; It's far from perfect, I have some trouble dealing with async processes, so it can certainly be improved.

Hope it's of some use to somebody

Code in pastebin

Crenelate answered 26/8, 2015 at 20:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.