- my $root = Email::MIME->create(
- header_str => [
- Date => 'Fri, 02 Oct 1993 00:00:00 +0000',
- Subject => 'Hello world',
- 'Message-ID' => '<root@s>',
- From => 'John Smith <js@example.com>',
- To => 'list@example.com',
- ],
- body => "\\m/\n");
- my $last = Email::MIME->create(
- header_str => [
- Date => 'Sat, 02 Oct 2010 00:00:00 +0000',
- Subject => 'Re: Hello world',
- 'In-Reply-To' => '<root@s>',
- 'Message-ID' => '<last@s>',
- From => 'John Smith <js@example.com>',
- To => 'list@example.com',
- Cc => 'foo@example.com',
- ],
- body => "goodbye forever :<\n");
-
+ my $root = PublicInbox::MIME->new(<<'EOF');
+Date: Fri, 02 Oct 1993 00:00:00 +0000
+Subject: Hello world
+Message-ID: <root@s>
+From: John Smith <js@example.com>
+To: list@example.com
+
+\m/
+EOF
+ my $last = PublicInbox::MIME->new(<<'EOF');
+Date: Sat, 02 Oct 2010 00:00:00 +0000
+Subject: Re: Hello world
+In-Reply-To: <root@s>
+Message-ID: <last@s>
+From: John Smith <js@example.com>
+To: list@example.com
+Cc: foo@example.com
+
+goodbye forever :<
+EOF