smtp2http icon indicating copy to clipboard operation
smtp2http copied to clipboard

Cannot parse the name of the "From" field

Open beydogan opened this issue 2 years ago • 0 comments

It cannot parse the name part of From field. The sender in the example is a Gmail account so it sets the From field like:

From: John Doe <[email protected]> but payload doesn't have the name field.

Here is an example payload:

{
  "spf": "softfail",
  "id": "CAHg1ePJZcAw_qS0HQuXc4KATCvZORVbMCOfVmSuGt28PDTZk0A@mail.gmail.com",
  "date": "2023-09-12 11:55:37 +0300 +0300",
  "subject": "test",
  "resent_date": "0001-01-01 00:00:00 +0000 UTC",
  "body": {
    "text": "foobar",
    "html": "
foobar
"
  },
  "addresses": {
    "from": {
      "address": "[email protected]"
    },
    "to": {
      "address": "..."
    }
  }
}

beydogan avatar Sep 12 '23 09:09 beydogan