Files
Pablo Zmdl d877302e50 Fix displaying message/rfc822 parts (#9753)
* Fix displaying message/rfc822 parts

The previous code contained a simple error that assigned the body part
to the $headers variable (which then couldn't be parsed and got
discarded).

* Test rendering of attached message/rfc822 parts
2025-01-15 18:27:05 +01:00

75 lines
2.2 KiB
Plaintext

MIME-Version: 1.0
Date: Wed, 15 Jan 2025 11:44:00 +0100
From: admin@example.net
To: admin@example.net
Subject: Fwd: Lines
In-Reply-To: <99839b8ec12482419372f1edafa9de75@woodcrest.local>
References: <99839b8ec12482419372f1edafa9de75@woodcrest.local>
Message-ID: <4052c2097de93825c1be040270d98e47@example.net>
X-Sender: admin@example.net
X-Draft-Info: type=forward; uid=3; folder=B::SU5CT1g=
Content-Type: multipart/mixed;
boundary="=_9b038d50a3b2b5cfe9fdbd53743b1ea9"
--=_9b038d50a3b2b5cfe9fdbd53743b1ea9
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII;
format=flowed
Check the forwarded message
--=_9b038d50a3b2b5cfe9fdbd53743b1ea9
Content-Transfer-Encoding: 8bit
Content-Type: message/rfc822;
name=Lines.eml
Content-Disposition: attachment;
filename=Lines.eml;
size=1382
Return-Path: <thomas@roundcube.net>
X-Original-To: tb@tester.local
From: "Thomas B." <thomas@roundcube.net>
To: Tom Tester <tb@tester.local>
Subject: Lines
Cc: test1@domain.tld, test2@domain.tld, test3@domain.tld, test4@domain.tld,
test5@domain.tld, test6@domain.tld, test7@domain.tld, test8@domain.tld,
test9@domain.tld, test10@domain.tld, test11@domain.tld, test12@domain.tld
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_8853bfb47b7da1852ac882e69cc724f3"
Date: Fri, 23 May 2014 19:44:50 +0200
Reply-To: hello@roundcube.net
Mail-Reply-To: hello@roundcube.net
Message-ID: <99839b8ec12482419372f1edafa9de75@woodcrest.local>
X-Sender: thomas@roundcube.net
--=_8853bfb47b7da1852ac882e69cc724f3
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=UTF-8;
format=flowed
Plain text message body.
--
Developer of Free Software
Sent with Roundcube Webmail - roundcube.net
--=_8853bfb47b7da1852ac882e69cc724f3
Content-Transfer-Encoding: base64
Content-Type: text/plain;
name=lines.txt
Content-Disposition: attachment;
filename=lines.txt;
size=13
Zm9vDQpiYXINCmduYQ==
--=_8853bfb47b7da1852ac882e69cc724f3
Content-Transfer-Encoding: base64
Content-Type: text/plain;
name=lines_lf.txt
Content-Disposition: attachment;
filename=lines_lf.txt;
size=11
Zm9vCmJhcgpnbmE=
--=_8853bfb47b7da1852ac882e69cc724f3--
--=_9b038d50a3b2b5cfe9fdbd53743b1ea9--