Skip to content

MultipartReader ignores first part, if preamble is missing #160

@jochenonline

Description

@jochenonline

Although documentation sais "The message must not contain a preamble preceding the first encapsulation boundary." the first part is ignored, if the preamble is missing as in the following example. If a add a preamble before the frst part (any text is o.k.), the part is perfectly read.

Content-Type: multipart/mixed; boundary=MIME_boundary_227911F9473A3053
Date: Tue, 23 Apr 2013 10:41:31 GMT
From: john@doe.com
Mime-Version: 1.0
Subject: This is the subject
To: <me@doe.com>

--MIME_boundary_227911F9473A3053
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain

This is the Mailbody, which is ignored because there is no preamble.
--MIME_boundary_227911F9473A3053
Content-Disposition: attachment
Content-Transfer-Encoding: base64
Content-Type: text/plain; name=text.txt

RGllcyBpc3QgZGVyIEluaGFsdCAyenUxIHZvbiB0ZXh0LnR4dA==
--MIME_boundary_227911F9473A3053
Content-Disposition: attachment
Content-Transfer-Encoding: base64
Content-Type: text/plain; name=text2.txt

RGllcyBpc3QgZGVyIEluaGFsdCAyenUxIHZvbiB0ZXh0Mi50eHQ=
--MIME_boundary_227911F9473A3053--

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions