emailjs / emailjs-imap-client

Low-level JS IMAP client for all your IMAP needs.
MIT License
552 stars 123 forks source link

How can I get from all messages the attachments? #222

Open sm-a opened 4 years ago

sm-a commented 4 years ago

Hi,

In the example is a multipart listed. How can I get the attachments (mime)? Merry Christmas I wish you all.

Sven

An example for multipart from the coding example. `

{
    "type": "multipart/mixed",
    "childNodes": [
        {
            "part": "1",
            "type": "text/plain",
            "encoding": "7bit",
            "size": 8,
            "lineCount": 1
        },
        {
            "part": "2",
            "type": "multipart/alternative",
            "childNodes": [
                {
                    "part": "2.1",
                    "type": "text/plain",
                    "encoding": "7bit",
                    "size": 8,
                    "lineCount": 1
                }
            ]
        }
    ]
}

`