<?xml version="1.0"?>
<run>
  <case>
    <name>Swift_Bug35Test</name>
    <test>
      <name>testHTMLPartAppearsLastEvenWhenAttachmentsAdded</name>
      <pass>Pattern [~^Sender: Other &lt;other@domain.tld&gt;
Message-ID: &lt;2d95a6c5dd8b0fede39f31820f5d6690@njlibertyhyundai.com&gt;
Date: Mon, 24 Aug 2026 12\:44\:28 \+1000
Subject: test subject
From: Other &lt;other@domain.tld&gt;
To: User &lt;user@domain.tld&gt;
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary=&quot;_=_swift_v4_1787539468_bd5e98067c44a6535fffa487ed19bc58_=_&quot;


--_=_swift_v4_1787539468_bd5e98067c44a6535fffa487ed19bc58_=_
Content-Type: multipart/alternative;
 boundary=&quot;(.*?)&quot;


--\1
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

plain part

--\1
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

HTML part

--\1--


--_=_swift_v4_1787539468_bd5e98067c44a6535fffa487ed19bc58_=_
Content-Type: image/gif; name=image.gif
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=image.gif

PGRhdGE\+

--_=_swift_v4_1787539468_bd5e98067c44a6535fffa487ed19bc58_=_--
$~D] detected at character [0] in [String: Sender: Other &lt;other@domain.tld&gt;
Message-ID: &lt;2d95a6c5dd8b0fede39f31820f5d6690@njlibertyhyundai.com&gt;
Date: Mon, 24 Aug 2026 12:44:28 +1000
Subject: test subject
From: Other &lt;other@domain.tld&gt;
To:...] as [Sender: Other &lt;other@domain.tld&gt;
Message-ID: &lt;2d95a6c5dd8b0fede39f31820f5d6690@njlibertyhyundai.com&gt;
Date: Mon, 24 Aug 2026 12:44:28 +1000
Subject: test subject
From: Other &lt;other@domain.tld&gt;
To: User &lt;user@domain.tld&gt;
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary=&quot;_=_swift_v4_1787539468_bd5e98067c44a6535fffa487ed19bc58_=_&quot;


--_=_swift_v4_1787539468_bd5e98067c44a6535fffa487ed19bc58_=_
Content-Type: multipart/alternative;
 boundary=&quot;_=_swift_v4_1787539468_e41dc37abbfd1a8020740914beb6c3a1_=_&quot;


--_=_swift_v4_1787539468_e41dc37abbfd1a8020740914beb6c3a1_=_
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

plain part

--_=_swift_v4_1787539468_e41dc37abbfd1a8020740914beb6c3a1_=_
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

HTML part

--_=_swift_v4_1787539468_e41dc37abbfd1a8020740914beb6c3a1_=_--


--_=_swift_v4_1787539468_bd5e98067c44a6535fffa487ed19bc58_=_
Content-Type: image/gif; name=image.gif
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=image.gif

PGRhdGE+

--_=_swift_v4_1787539468_bd5e98067c44a6535fffa487ed19bc58_=_--
] in region [Sender: Other &lt;other@domain.tld&gt;
Message-ID: &lt;2d95a6c5dd8b0fede39f31820f5d6690@njlibertyhyundai.com...] at [/var/www/njlibertyhyundai.com/public_html/php/classes/swift/tests/bug/Swift/Bug35Test.php line 72]</pass>
    </test>
  </case>
</run>
