8000 BODYSTRUCTURE response missing extended parameters · Issue #217 · mjl-/mox · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
BODYSTRUCTURE response missing extended parameters #217
Closed
@danieleggert

Description

@danieleggert

The BODYSTRUCTURE response for MIME messages is missing the extension parameters (body parameters), and most notably thus missing the MIME part boundaries of multipart messages.

Example:

Given a simple multipart message:

From: <noreply@apple.com>
Content-type: multipart/alternative;
    boundary="47969A3F-1F13-4D6C-83F5-695D4B116B14"
MIME-version: 1.0
Subject: B
Message-id: <97E2B701-346B-410C-A575-0F73CFAA2F31@apple.com>
Date: Thu, 26 Sep 2024 10:03:22 +0200
To: mail-app-test@strnmn.me

--47969A3F-1F13-4D6C-83F5-695D4B116B14
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=us-ascii

b

--47969A3F-1F13-4D6C-83F5-695D4B116B14
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
charset=us-ascii

<html><body>b</body></html>
--47969A3F-1F13-4D6C-83F5-695D4B116B14--

the server should return this BODYSTRUCTURE

4 FETCH (UID 6 BODYSTRUCTURE (("TEXT" "PLAIN" ("CHARSET" "us-ascii") NIL NIL "7BIT" 9 2 NIL NIL NIL NIL)("TEXT" "HTML" ("CHARSET" "us-ascii") NIL NIL "7BIT" 228 0 NIL NIL NIL NIL) "ALTERNATIVE" ("BOUNDARY" "47969A3F-1F13-4D6C-83F5-695D4B116B14") NIL NIL NIL))

Note the ("BOUNDARY" "47969A3F-1F13-4D6C-83F5-695D4B116B14") part.

But mox currently returns this BODYSTRUCTURE:

* 4 FETCH (UID 6 BODYSTRUCTURE (("TEXT" "PLAIN" ("CHARSET" "us-ascii") NIL NIL "7BIT" 9 2)("TEXT" "HTML" ("CHARSET" "us-ascii") NIL NIL "7BIT" 228 1) "ALTERNATIVE"))

Note: This boundary information should be included for all multi-part MIME parts, not just the main part’s boundary. If another multipart is nested inside the main message’s multipart, that part’s boundary information must also be present in the BODYSTRUCTURE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0