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

Ken Murchison <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Message-ID <[email protected]>
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:[email protected] 
> <mailto:[email protected]>/<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": "[email protected]  <mailto:[email protected]>"
>                }
>              ],
>              "subject": null,
>              "bodyValues": {},
>              "htmlBody": [],
>              "attachments": [
>                {
>                  "partId": "1",
>                  "blobId": "G06696b9bb4a08d304ce5a7a4e46b9e7c1f243a4e",
>                  "size": 293,
>                  "type": "message/cpim"
>                }
>              ]
>            }
>          ],
>          "notFound": [],
>          "accountId": "[email protected]  <mailto:[email protected]>"
>        },
>        "0"
>      ]
>    ],
>    "sessionState": "0"
> }
>
> *Cyrus <https://cyrus.topicbox.com/latest>* / Info / see discussions 
> <https://cyrus.topicbox.com/groups/info> + participants 
> <https://cyrus.topicbox.com/groups/info/members> + delivery options 
> <https://cyrus.topicbox.com/groups/info/subscription> Permalink 
> <https://cyrus.topicbox.com/groups/info/Tbc4d7fa33d46ffa5-M2dbea642362ff4b7c5cdcca8> 
>

-- 
Kenneth Murchison
Senior Software Developer
Fastmail US LLC


------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/Tbc4d7fa33d46ffa5-M09bf17fd3264ab20bfe18c57
Delivery options: https://cyrus.topicbox.com/groups/info/subscription
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.