StevenMaude/go-mailin8

Messages may contain multiple parts

StevenMaude opened this issue · 2 comments

One example I've seen:

    "parts": [
        {
            "headers": {
                "content-transfer-encoding": "8bit",
                "content-type": "text/plain; charset = \"utf-8\""
            },
            "body": "..."
        },
        {
            "headers": {
                "content-transfer-encoding": "8bit",
                "content-type": "text/html; charset = \"utf-8\""
            },
            "body": "..."
        }

The first part body only contains <br>, while the second part body contains the same text but with what looks like full markup, including the <a> that's needed in this case (and missing from the first part).

Including the markup would be messy (see #4) but would at least include the URL(s) of interest.

Hopefully fixed by #5.