Stored email using cURL IMAP, fetching via JMAP not as expected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Email message was stored using the cURL command with the IMAP extension.

curl "imap://username:password@xxxxxxxxxxx/<FOLDER>" -T <FILE>

<FILE> text file contains email in RFC2822/RFC5322 format.

When the email is fetched using JMAP, it is not showing up in the bodyValues but in attachments. What's causing the email to be interpreted as an attachment?  I'd appreciate any feedback.

{
  "methodResponses": [
    [
      "Email/get",
      {
        "state": "142",
        "list": [
          {
            "id": "M89b6b83db2f6cb1cbd979ca9",
            "threadId": "T184561dcb99fc00e",
            "mailboxIds": {
              "f35eaefd-9a24-4138-9f51-4bac22ccbede": true
            },
            "receivedAt": "2021-03-31T19:05:09Z",
            "header:List-POST:asURLs": null,
            "from": [
              {
                "name": null,
                "email": "15554441001@xxxxxxxxxxxx"
              }
            ],
            "subject": null,
            "bodyValues": {},
            "htmlBody": [],
            "attachments": [
              {
                "partId": "1",
                "blobId": "G06696b9bb4a08d304ce5a7a4e46b9e7c1f243a4e",
                "size": 293,
                "type": "message/cpim"
              }
            ]
          }
        ],
        "notFound": [],
        "accountId": "15554441003@xxxxxxxxxxxx"
      },
      "0"
    ]
  ],
  "sessionState": "0"
}


[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux