What does the email stored in Cyrus look like on disk? I'm guessing that curl is wrapping whatever you give it in a RFC5322 header before it IMAP APPENDs it.
What does the email stored in Cyrus look like if you fetch it via IMAP?
On 4/7/21 11:19 AM, David Luong wrote:
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" }
-- Kenneth Murchison Senior Software Developer Fastmail US LLC