summaryrefslogtreecommitdiffstats
path: root/comm/mail/test/browser/composition/data
diff options
context:
space:
mode:
Diffstat (limited to 'comm/mail/test/browser/composition/data')
-rw-r--r--comm/mail/test/browser/composition/data/attachment.txt4
-rw-r--r--comm/mail/test/browser/composition/data/base64-bug1586890.eml25
-rw-r--r--comm/mail/test/browser/composition/data/base64-encoded-msg.eml11
-rw-r--r--comm/mail/test/browser/composition/data/base64-with-whitespace.eml46
-rw-r--r--comm/mail/test/browser/composition/data/body-greek.eml9
-rw-r--r--comm/mail/test/browser/composition/data/body-utf16.eml10
-rw-r--r--comm/mail/test/browser/composition/data/charset-cp932.eml11
-rw-r--r--comm/mail/test/browser/composition/data/content-utf8-alt-rel.eml46
-rw-r--r--comm/mail/test/browser/composition/data/content-utf8-alt-rel2.eml46
-rw-r--r--comm/mail/test/browser/composition/data/content-utf8-rel-alt.eml40
-rw-r--r--comm/mail/test/browser/composition/data/content-utf8-rel-only.eml32
-rw-r--r--comm/mail/test/browser/composition/data/defective-charset.eml28
-rw-r--r--comm/mail/test/browser/composition/data/en_NZ/en_NZ.aff0
-rw-r--r--comm/mail/test/browser/composition/data/en_NZ/en_NZ.dic23
-rw-r--r--comm/mail/test/browser/composition/data/evil-meta-msg.eml11
-rw-r--r--comm/mail/test/browser/composition/data/feed-message.eml26
-rw-r--r--comm/mail/test/browser/composition/data/format-flowed.eml12
-rw-r--r--comm/mail/test/browser/composition/data/format1-altering.eml21
-rw-r--r--comm/mail/test/browser/composition/data/format1-plain.eml22
-rw-r--r--comm/mail/test/browser/composition/data/format2-style-attr.eml37
-rw-r--r--comm/mail/test/browser/composition/data/format3-style-tag.eml31
-rw-r--r--comm/mail/test/browser/composition/data/iso-2022-jp.eml12
-rw-r--r--comm/mail/test/browser/composition/data/long-html-line.eml16
-rw-r--r--comm/mail/test/browser/composition/data/mime-encoded-subject.eml16
-rw-r--r--comm/mail/test/browser/composition/data/multipart-charset.eml24
-rw-r--r--comm/mail/test/browser/composition/data/nest.pngbin0 -> 293451 bytes
-rw-r--r--comm/mail/test/browser/composition/data/non-flowed-plain.eml15
-rw-r--r--comm/mail/test/browser/composition/data/tb-logo.pngbin0 -> 6462 bytes
-rw-r--r--comm/mail/test/browser/composition/data/testmsg.eml16
-rw-r--r--comm/mail/test/browser/composition/data/xunsent.eml14
30 files changed, 604 insertions, 0 deletions
diff --git a/comm/mail/test/browser/composition/data/attachment.txt b/comm/mail/test/browser/composition/data/attachment.txt
new file mode 100644
index 0000000000..e5dde9a9f2
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/attachment.txt
@@ -0,0 +1,4 @@
+"Attachment is the great fabricator of illusions; reality can be attained only
+ by someone who is detached."
+
+ -- Simone Weil
diff --git a/comm/mail/test/browser/composition/data/base64-bug1586890.eml b/comm/mail/test/browser/composition/data/base64-bug1586890.eml
new file mode 100644
index 0000000000..b79957b6c0
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/base64-bug1586890.eml
@@ -0,0 +1,25 @@
+Date: Tue, 31 Aug 2018 16:33:00 +0200
+From: From <from@example.com>
+To: To <to@example.com>
+Subject: Bug 1586890 - BASE64 MIME body and attachment (UTF-16BE) with invalid charset
+MIME-Version: 1.0
+Message-ID: <1dcZe4@example.com>
+Content-Type: multipart/mixed;
+ boundary="------------DA562B250842CC7332F16476"
+
+This is a multi-part message in MIME format.
+--------------DA562B250842CC7332F16476
+Content-Type: text/plain; charset=BadCharset
+Content-Transfer-Encoding: base64
+
+AGEAYgBjAGQAZQBmAGcAaABpAGoAawBsAG0ADQAKAG4AbwBwAHEAcgBzAHQAdQB2AHcAeAB5
+AHo=
+--------------DA562B250842CC7332F16476
+Content-Type: text/plain; charset=BadCharset
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment;
+ filename="test.txt"
+
+AGEAYgBjAGQAZQBmAGcAaABpAGoAawBsAG0ADQAKAG4AbwBwAHEAcgBzAHQAdQB2AHcAeAB5
+AHo=
+--------------DA562B250842CC7332F16476--
diff --git a/comm/mail/test/browser/composition/data/base64-encoded-msg.eml b/comm/mail/test/browser/composition/data/base64-encoded-msg.eml
new file mode 100644
index 0000000000..e2a37fbe85
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/base64-encoded-msg.eml
@@ -0,0 +1,11 @@
+Message-ID: <4877F4BB.3060507@example.org>
+Date: Fri, 11 Jul 2008 20:03:07 -0400
+From: Joe <joe@example.org>
+MIME-Version: 1.0
+To: Jane <jane@example.org>
+Subject: base64 content
+Content-Type: text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: base64
+
+WW91IGhhdmUgZGVjb2RlZCB0aGlzIHRleHQgZnJvbSBiYXNlNjQu
+
diff --git a/comm/mail/test/browser/composition/data/base64-with-whitespace.eml b/comm/mail/test/browser/composition/data/base64-with-whitespace.eml
new file mode 100644
index 0000000000..f610203558
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/base64-with-whitespace.eml
@@ -0,0 +1,46 @@
+Date: Tue, 31 Aug 2018 16:33:00 +0200
+From: From <from@example.com>
+To: To <to@example.com>
+Subject: Bug 1487421 - BASE64 MIME body and attachment with empty lines in between
+MIME-Version: 1.0
+Message-ID: <1dcZe4@example.com>
+Content-Type: multipart/mixed;
+ boundary="------------DA562B250842CC7332F16476"
+
+This is a multi-part message in MIME format.
+--------------DA562B250842CC7332F16476
+Content-Type: text/plain; charset=utf-8
+Content-Transfer-Encoding: base64
+
+YWJj
+
+ZG
+
+V
+
+mZ2hpamtsbW
+
+5vcHFyc3R1dnd4
+
+eXo=
+
+--------------DA562B250842CC7332F16476
+Content-Type: text/plain; charset=utf-8
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment;
+ filename="test.txt"
+
+YWJj
+
+ZG
+
+V
+
+mZ2hpamtsbW
+
+5vcHFyc3R1dnd4
+
+eXo=
+
+--------------DA562B250842CC7332F16476--
+
diff --git a/comm/mail/test/browser/composition/data/body-greek.eml b/comm/mail/test/browser/composition/data/body-greek.eml
new file mode 100644
index 0000000000..d2b1764e9b
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/body-greek.eml
@@ -0,0 +1,9 @@
+From: test <test@example.com>
+Subject: test reply to ISO-8859-7 encoded message
+To: test2 <test2@example.com>
+Date: Sat, 27 Feb 2016 17:11:45 +0100
+MIME-Version: 1.0
+Content-Type: text/plain; charset=ISO-8859-7
+Content-Transfer-Encoding: quoted-printable
+
+Here comes some Greek text: =CA=E1=EB=E7=F3=F0=DD=F1=E1
diff --git a/comm/mail/test/browser/composition/data/body-utf16.eml b/comm/mail/test/browser/composition/data/body-utf16.eml
new file mode 100644
index 0000000000..2d72a8dc71
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/body-utf16.eml
@@ -0,0 +1,10 @@
+From: test <test@example.com>
+Subject: test reply to UTF-16 encoded message
+To: test2 <test2@example.com>
+Date: Sat, 27 Feb 2016 17:11:45 +0100
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-16LE;
+Content-Transfer-Encoding: base64
+
+//5IAGkAIABNAGEAZwBuAHUAcwAsACAAaABlAHIAZQAgAGEAIABiAGUAdAB0AGUAcgAgAFUA
+VABGAC0AMQA2ACAAZQBuAGMAbwBkAGUAZAAgAG0AYQBpAGwALgA=
diff --git a/comm/mail/test/browser/composition/data/charset-cp932.eml b/comm/mail/test/browser/composition/data/charset-cp932.eml
new file mode 100644
index 0000000000..1e8fc33123
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/charset-cp932.eml
@@ -0,0 +1,11 @@
+Date: Tue, 4 Dec 2018 15:23:22 +0900
+From: from@example.org
+Subject: =?cp932?Q?=82=b1=82=b1=82=c9=96=7b=95=b6=82=aa=82=ab=82=dc=82=b7=81=42?=
+To: to@example.org
+Message-Id: <424F4F74-05B4-4575-8B0D-473334183C69@example.org>
+Mime-Version: 1.0 (1.0)
+Content-Type: text/plain; charset=cp932
+Content-Transfer-Encoding: 8bit
+
+ここに本文がきます。
+
diff --git a/comm/mail/test/browser/composition/data/content-utf8-alt-rel.eml b/comm/mail/test/browser/composition/data/content-utf8-alt-rel.eml
new file mode 100644
index 0000000000..ccf457ad2b
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/content-utf8-alt-rel.eml
@@ -0,0 +1,46 @@
+From: test <test@example.com>
+Subject: test multipart, alternative first
+To: test2 <test2@example.com>
+Date: Sat, 27 Feb 2016 17:11:45 +0100
+MIME-Version: 1.0
+Content-Type: multipart/alternative;
+ boundary="------------alternative"
+
+This is a multi-part message in MIME format.
+--------------alternative
+Content-Type: text/plain; charset=UTF-8; format=flowed
+Content-Transfer-Encoding: 8bit
+
+テ。テウテコテ、テカテシテ
+
+--------------alternative
+Content-Type: multipart/related;
+ boundary="------------related"
+
+
+--------------related
+Content-Type: text/html; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+<html attr>
+ <!-- This also needs to work when the html tag has an attribute -->
+ <head>
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+ </head>
+ <body bgcolor="#FFFFFF" text="#000000">
+ テ。テウテコテ、テカテシテ<br>
+ <img src="cid:part1" alt=""><br>
+ </body>
+</html>
+
+--------------related
+Content-Type: image/png
+Content-Transfer-Encoding: base64
+Content-ID: <part1>
+
+iVBORw0KGgoAAAANSUhEUgAAAAYAAAALCAIAAADTMGvBAAAAEUlEQVQImWPgsi5DQwxDWggA
+lCEwN+YGfiYAAAAASUVORK5CYII=
+--------------related--
+
+--------------alternative--
+
diff --git a/comm/mail/test/browser/composition/data/content-utf8-alt-rel2.eml b/comm/mail/test/browser/composition/data/content-utf8-alt-rel2.eml
new file mode 100644
index 0000000000..0a2df0cd9e
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/content-utf8-alt-rel2.eml
@@ -0,0 +1,46 @@
+From: test <test@example.com>
+Subject: test multipart, alternative first
+To: test2 <test2@example.com>
+Date: Sat, 27 Feb 2016 17:11:45 +0100
+MIME-Version: 1.0
+Content-Type: multipart/alternative;
+ boundary="------------alternative"
+
+This is a multi-part message in MIME format.
+--------------alternative
+Content-Type: text/plain; charset=UTF-8; format=flowed
+Content-Transfer-Encoding: 8bit
+
+テ。テウテコテ、テカテシテ
+
+--------------alternative
+Content-Type: multipart/related;
+ boundary="------------related"
+
+
+--------------related
+Content-Type: text/html; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+テ。テウテコテ、テカテシテ<br>
+<html>
+ <!-- This also needs to work when there is content before the html tag :-( -->
+ <head>
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+ </head>
+ <body bgcolor="#FFFFFF" text="#000000">
+ <img src="cid:part1" alt=""><br>
+ </body>
+</html>
+
+--------------related
+Content-Type: image/png
+Content-Transfer-Encoding: base64
+Content-ID: <part1>
+
+iVBORw0KGgoAAAANSUhEUgAAAAYAAAALCAIAAADTMGvBAAAAEUlEQVQImWPgsi5DQwxDWggA
+lCEwN+YGfiYAAAAASUVORK5CYII=
+--------------related--
+
+--------------alternative--
+
diff --git a/comm/mail/test/browser/composition/data/content-utf8-rel-alt.eml b/comm/mail/test/browser/composition/data/content-utf8-rel-alt.eml
new file mode 100644
index 0000000000..3b43154516
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/content-utf8-rel-alt.eml
@@ -0,0 +1,40 @@
+From: test <test@example.com>
+Subject: test multipart, related first
+To: test2 <test2@example.com>
+Date: Sat, 27 Feb 2016 17:11:45 +0100
+MIME-Version: 1.0
+Content-Type: multipart/related;
+ boundary="------------related"
+
+--------------related
+Content-Type: multipart/alternative;
+ boundary="------------alternative"
+Content-Type: text/plain; charset=UTF-8; format=flowed
+Content-Transfer-Encoding: 8bit
+
+テ。テウテコテ、テカテシテ
+
+--------------alternative
+Content-Type: text/html; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+ <!-- This also needs to work when there is no html tag -->
+ <head>
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+ </head>
+ <body bgcolor="#FFFFFF" text="#000000">
+ テ。テウテコテ、テカテシテ<br>
+ <img src="cid:part1" alt=""><br>
+ </body>
+
+--------------alternative
+
+--------------related
+Content-Type: image/png
+Content-Transfer-Encoding: base64
+Content-ID: <part1>
+
+iVBORw0KGgoAAAANSUhEUgAAAAYAAAALCAIAAADTMGvBAAAAEUlEQVQImWPgsi5DQwxDWggA
+lCEwN+YGfiYAAAAASUVORK5CYII=
+
+--------------related--
diff --git a/comm/mail/test/browser/composition/data/content-utf8-rel-only.eml b/comm/mail/test/browser/composition/data/content-utf8-rel-only.eml
new file mode 100644
index 0000000000..17e773859e
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/content-utf8-rel-only.eml
@@ -0,0 +1,32 @@
+From: test <test@example.com>
+Subject: test HTML related only
+To: test2 <test2@example.com>
+Date: Sat, 27 Feb 2016 17:11:45 +0100
+MIME-Version: 1.0
+Content-Type: multipart/related;
+ boundary="------------related"
+
+This is a multi-part message in MIME format.
+--------------related
+Content-Type: text/html; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+<html>
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+ </head>
+ <body bgcolor="#FFFFFF" text="#000000">
+ テ。テウテコテ、テカテシテ<br>
+ <img src="cid:part1" id="cidImage" width="10" height="10" alt="">
+ <img src="cid:part1" crossorigin="anonymous" id="cidImageOrigin" width="20" height="20" alt="">
+ </body>
+</html>
+
+--------------related
+Content-Type: image/png
+Content-Transfer-Encoding: base64
+Content-ID: <part1>
+
+iVBORw0KGgoAAAANSUhEUgAAAAYAAAALCAIAAADTMGvBAAAAEUlEQVQImWPgsi5DQwxDWggA
+lCEwN+YGfiYAAAAASUVORK5CYII=
+--------------related--
diff --git a/comm/mail/test/browser/composition/data/defective-charset.eml b/comm/mail/test/browser/composition/data/defective-charset.eml
new file mode 100644
index 0000000000..7b5c431294
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/defective-charset.eml
@@ -0,0 +1,28 @@
+To: me@example.com
+From: you@example.com
+Subject: Test message with Spanish text, no encoding, is windows-1250 (as detected)
+Date: Tue, 20 Apr 2021 15:20:34 -0500
+MIME-Version: 1.0
+Content-Type: text/plain;
+Content-Transfer-Encoding: 8bit
+Content-Language: en-US
+
+A lo largo de mi vida he sido testigo de muchas historias, experiencias
+e interpretaciones de la vida. Y me doy cuenta de que lo que m疽 aprecio
+es la honestidad. En estos ltimos meses siento que se ha polarizado an
+m疽 esta gran diferencias: las personas que son honestas consigo mismas,
+incluso en su deshonestidad, y las que no. Las personas honestas son
+aquellas dueas y responsables de su vida. Que no buscan una autoridad
+externa que les gue, que les proteja, que les cuide. Las personas
+deshonestas son aquellas que se creen vctimas de la vida, que culpan al
+otro o a los otros de sus 電esgracias. Que buscan fuera lo que solo
+pueden encontrar dentro. A lo largo de mi vida he sido testigo de muchas
+historias, experiencias e interpretaciones de la vida. Y me doy cuenta
+de que lo que m疽 aprecio es la honestidad. En estos ltimos meses
+siento que se ha polarizado an m疽 esta gran diferencias: las personas
+que son honestas consigo mismas, incluso en su deshonestidad, y las que
+no. Las personas honestas son aquellas dueas y responsables de su vida.
+Que no buscan una autoridad externa que les gue, que les proteja, que
+les cuide. Las personas deshonestas son aquellas que se creen vctimas
+de la vida, que culpan al otro o a los otros de sus 電esgracias. Que
+buscan fuera lo que solo pueden encontrar dentro.
diff --git a/comm/mail/test/browser/composition/data/en_NZ/en_NZ.aff b/comm/mail/test/browser/composition/data/en_NZ/en_NZ.aff
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/en_NZ/en_NZ.aff
diff --git a/comm/mail/test/browser/composition/data/en_NZ/en_NZ.dic b/comm/mail/test/browser/composition/data/en_NZ/en_NZ.dic
new file mode 100644
index 0000000000..9c4f5d1758
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/en_NZ/en_NZ.dic
@@ -0,0 +1,23 @@
+23
+aluminium
+an
+and
+boat
+centre
+colour
+harbour
+I
+in
+jewellery
+like
+manoeuvred
+ochre
+of
+shone
+sky
+stars
+the
+The
+to
+was
+went
diff --git a/comm/mail/test/browser/composition/data/evil-meta-msg.eml b/comm/mail/test/browser/composition/data/evil-meta-msg.eml
new file mode 100644
index 0000000000..82de0bac65
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/evil-meta-msg.eml
@@ -0,0 +1,11 @@
+From: Fuzz <fizz@example.org>
+To: contact@example.org
+Subject: test case 17
+Date: Wed, 11 May 2024 14:31:59 +0000
+Content-Type: text/html
+
+<html>
+<meta http-equiv="refresh" content="0;URL='http://localhost:8090'" />
+<meta http-equiv="refresh" content="1;URL='http://localhost:8091'" />
+<div id="demo">KABOOM!</demo>
+<object onerror="alert(1); document.getElementById('demo').innerHTML=parent.JSON.stringify(Object.getOwnPropertyNames(parent));" data="notarealaddress" width="400" height="300"></object>
diff --git a/comm/mail/test/browser/composition/data/feed-message.eml b/comm/mail/test/browser/composition/data/feed-message.eml
new file mode 100644
index 0000000000..66f81a65ff
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/feed-message.eml
@@ -0,0 +1,26 @@
+From - Fri, 27 Jan 2017 00:19:08 GMT
+X-Mozilla-Status: 0041
+X-Mozilla-Status2: 00000000
+X-Mozilla-Keys:
+Received: by localhost; Fri, 27 Jan 2017 07:52:26 +0100
+Date: Fri, 27 Jan 2017 00:19:08 GMT
+Message-Id: <http://www.selenic.com/mercurial/#changeset-c11fe7c58837ebf4266357d1f31896c7cc4a49b9@localhost.localdomain>
+From: john@example.com
+MIME-Version: 1.0
+Subject: Changeset c11fe7c58837ebf4266357d1f31896c7cc4a49b9
+Content-Transfer-Encoding: 8bit
+Content-Base: http://hg.mozilla.org/mozilla-central/rev/c11fe7c58837ebf4266357d1f31896c7cc4a49b9
+Content-Type: text/html; charset=UTF-8
+
+<html>
+ <head>
+ <title>Changeset c11fe7c58837ebf4266357d1f31896c7cc4a49b9</title>
+ <base href="http://hg.mozilla.org/mozilla-central/pushlog">
+ </head>
+ <body id="msgFeedSummaryBody" selected="false">
+ <div xmlns="http://www.w3.org/1999/xhtml">
+ <ul class="filelist"><li class="file">modules/libpref/init/all.js</li><li class="file">netwerk/base/nsIOService.cpp</li><li class="file">netwerk/base/nsIOService.h</li><li class="file">We like using linefeeds only.</li></ul>
+ </div>
+ </body>
+</html>
+
diff --git a/comm/mail/test/browser/composition/data/format-flowed.eml b/comm/mail/test/browser/composition/data/format-flowed.eml
new file mode 100644
index 0000000000..31e77cb465
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/format-flowed.eml
@@ -0,0 +1,12 @@
+To: test1@test.invalid
+From: test2@test.invalid
+Subject: test format flowed reply
+Date: Tue, 27 Sep 2016 13:00:40 +0200
+MIME-Version: 1.0
+Content-Type: text/plain; charset=windows-1252; format=flowed
+Content-Language: en-US
+Content-Transfer-Encoding: 7bit
+
+first first first first first text text text text text text text text
+text text text text text text text text text text text text text text
+last last last last last last last last last last last last last last
diff --git a/comm/mail/test/browser/composition/data/format1-altering.eml b/comm/mail/test/browser/composition/data/format1-altering.eml
new file mode 100644
index 0000000000..b635ef267b
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/format1-altering.eml
@@ -0,0 +1,21 @@
+Message-ID: <11111.11111@example.invalid>
+Date: Sun, 18 May 2014 22:31:12 +0200
+MIME-Version: 1.0
+To: test@test.invalid
+Content-Type: text/html; charset=utf-8
+Content-Transfer-Encoding: 7bit
+
+<html>
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <title>title</title>
+ </head>
+ <body bgcolor="#FFFFFF" text="#000000">
+ <h1>heading</h1>
+ <hr>
+ <pre>
+ Pre line 1
+ Pre line 2
+ </pre>
+ </body>
+</html>
diff --git a/comm/mail/test/browser/composition/data/format1-plain.eml b/comm/mail/test/browser/composition/data/format1-plain.eml
new file mode 100644
index 0000000000..c39900369c
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/format1-plain.eml
@@ -0,0 +1,22 @@
+Message-ID: <11111.11111@example.invalid>
+Date: Sun, 18 May 2014 22:31:12 +0200
+MIME-Version: 1.0
+To: test@test.invalid
+Content-Type: text/html; charset=utf-8
+Content-Transfer-Encoding: 7bit
+
+<html>
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <title>title</title>
+ </head>
+ <body bgcolor="#FFFFFF" text="#000000">
+ Line 1<br>
+<p>
+ Line 2
+</p>
+ <pre class="moz-signature" cols="72">--
+ Signature block
+ </pre>
+ </body>
+</html>
diff --git a/comm/mail/test/browser/composition/data/format2-style-attr.eml b/comm/mail/test/browser/composition/data/format2-style-attr.eml
new file mode 100644
index 0000000000..5893b72472
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/format2-style-attr.eml
@@ -0,0 +1,37 @@
+Message-ID: <22222222.2222222@example.invalid>
+Date: Sun, 17 Jun 2012 09:42:45 +0200
+From: John Doe
+MIME-Version: 1.0
+Subject: Testcase - style attribute
+Content-Type: text/html; charset=ISO-8859-1
+Content-Transfer-Encoding: 7bit
+
+<html>
+ <head>
+ <meta http-equiv="content-type" content="text/html;
+ charset=ISO-8859-1">
+ </head>
+ <body bgcolor="#FFFFFF" text="#000000">
+ *** This text is "Variable Width" ***<br>
+ <br>
+ <a title="Get the best mailer now! (Caveat: neglected bird with lots
+ of bugs)" style="float: right; background-color: blue; font-size:
+ 18px; text-decoration: none; color: white; padding-top: 90px;
+ padding-bottom: 90px; padding-right: 50px; padding-left: 50px;"
+ href="http://www.getthunderbird.com">http://www.getthunderbird.com</a><a
+ title="Get the best browser now!" style="float: right;
+ background-color: orangered; font-size: 18px; text-decoration:
+ none; color: white; padding-top: 90px; padding-bottom: 90px;
+ padding-right: 50px; padding-left: 50px;"
+ href="http://www.getfirefox.com">http://www.getfirefox.com</a>Lorem
+ ipsum
+ dolor sit amet, consectetur adipiscing elit. Vestibulum
+ velit purus, egestas eu commodo ac, imperdiet pretium sem. Nulla
+ pulvinar commodo rutrum. Duis feugiat facilisis libero, id fermentum
+ neque molestie vel. Praesent vel nisi metus, a aliquam tellus. Cras
+ in
+ <pre style="color:blue;background-color:yellow;text-align:center;">
+ Vivamus accumsan bibendum arcu nec egestas. Suspendisse potenti.
+ </pre>
+ </body>
+</html>
diff --git a/comm/mail/test/browser/composition/data/format3-style-tag.eml b/comm/mail/test/browser/composition/data/format3-style-tag.eml
new file mode 100644
index 0000000000..b0b27f7ae8
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/format3-style-tag.eml
@@ -0,0 +1,31 @@
+Message-ID: <33333.33333@example.invalid>
+Date: Sun, 17 Jun 2012 09:42:45 +0200
+MIME-Version: 1.0
+Subject: <style> element
+Content-Type: text/html; charset=ISO-8859-1
+Content-Transfer-Encoding: 7bit
+
+<html>
+<head>
+
+<style type="text/css">
+<!--
+body {
+font-size:11.0pt;
+font-family:"Calibri","sans-serif";
+}
+ul, ol, blockquote {
+margin: 0px 0px;
+}
+-->
+</style>
+
+</head><body>
+
+Type text here
+
+<div id="imageholder">
+
+</div>
+</body>
+</html>
diff --git a/comm/mail/test/browser/composition/data/iso-2022-jp.eml b/comm/mail/test/browser/composition/data/iso-2022-jp.eml
new file mode 100644
index 0000000000..79f289cc4a
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/iso-2022-jp.eml
@@ -0,0 +1,12 @@
+To: test1@test.invalid
+From: test2@test.invalid
+Subject: test quote ISO-2022-JP encoded message
+Date: Mon, 17 Aug 2020 10:10:47 +0900
+MIME-Version: 1.0
+Content-Type: text/plain; charset=ISO-2022-JP; format=flowed; delsp=yes
+Content-Transfer-Encoding: 7bit
+Content-Language: en-US
+
+hello
+
+$B@$3&(B
diff --git a/comm/mail/test/browser/composition/data/long-html-line.eml b/comm/mail/test/browser/composition/data/long-html-line.eml
new file mode 100644
index 0000000000..0c3adda83b
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/long-html-line.eml
@@ -0,0 +1,16 @@
+From: "Long line writer" <email@longline.invalid>
+To: <user@example.com>
+Subject: Long HTML line
+Date: Wed, 10 Feb 2016 16:45:36 -0600
+MIME-Version: 1.0
+Content-Type: text/html;
+ charset="us-ascii"
+Content-Transfer-Encoding: 7bit
+
+<!DOCTYPE html>
+<html>
+<body>
+
+We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. We like writing long lines. This is 998 long.
+
+ </body>
diff --git a/comm/mail/test/browser/composition/data/mime-encoded-subject.eml b/comm/mail/test/browser/composition/data/mime-encoded-subject.eml
new file mode 100644
index 0000000000..4b6ff2a263
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/mime-encoded-subject.eml
@@ -0,0 +1,16 @@
+Return-Path: <homer@example.com>
+Received: from smtp.example.com (smtpu [10.0.0.52])
+ by storage (Cyrus v2.3.7-Invoca-RPM-2.3.7-1.1) with LMTPA;
+ Mon, 26 Dec 2011 20:49:16 +0200
+Message-ID: <4EF8C1A5.1060708@example.com>
+Date: Mon, 26 Dec 2011 20:49:09 +0200
+From: Homer <homer@example.com>
+MIME-Version: 1.0
+To: Marge <marge@example.com>
+Subject: =?UTF-8?B?4oiAYeKIikE=?=
+Content-Type: text/plain; charset=UTF-8; format=flowed
+Content-Transfer-Encoding: 7bit
+
+Because they're stupid, that's why. That's why everybody does everything!
+
+ -Homer
diff --git a/comm/mail/test/browser/composition/data/multipart-charset.eml b/comm/mail/test/browser/composition/data/multipart-charset.eml
new file mode 100644
index 0000000000..20827efe54
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/multipart-charset.eml
@@ -0,0 +1,24 @@
+From: test <test@example.com>
+Subject: test multipart mixed, attachment with different charset
+To: test2 <test2@example.com>
+Date: Sat, 27 Feb 2016 17:11:45 +0100
+MIME-Version: 1.0
+Content-Type: multipart/mixed;
+ boundary="boundary"
+
+This is a multi-part message in MIME format.
+--boundary
+Content-Type: text/plain; charset=EUC-KR; format=flowed
+Content-Transfer-Encoding: 7bit
+
+Hi there.
+
+--boundary
+Content-Type: text/plain; charset=KOI8-R;
+ name="attachment.tmx"
+Content-Transfer-Encoding: 7bit
+Content-Disposition: attachment;
+ filename="attachment.tmx"
+
+Just some text.
+--boundary--
diff --git a/comm/mail/test/browser/composition/data/nest.png b/comm/mail/test/browser/composition/data/nest.png
new file mode 100644
index 0000000000..5d5c0b2873
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/nest.png
Binary files differ
diff --git a/comm/mail/test/browser/composition/data/non-flowed-plain.eml b/comm/mail/test/browser/composition/data/non-flowed-plain.eml
new file mode 100644
index 0000000000..5f1cd3ebbe
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/non-flowed-plain.eml
@@ -0,0 +1,15 @@
+From: test@example.com
+To: test@example.com
+MIME-Version: 1.0
+Subject:plain text message not using format=flowed
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+line 1
+line 2
+line 3
+line 4
+line 5
+line 6
+line 7
+line 8
diff --git a/comm/mail/test/browser/composition/data/tb-logo.png b/comm/mail/test/browser/composition/data/tb-logo.png
new file mode 100644
index 0000000000..aac56e2546
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/tb-logo.png
Binary files differ
diff --git a/comm/mail/test/browser/composition/data/testmsg.eml b/comm/mail/test/browser/composition/data/testmsg.eml
new file mode 100644
index 0000000000..7aa1127836
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/testmsg.eml
@@ -0,0 +1,16 @@
+Return-Path: <homer@example.com>
+Received: from smtp.example.com (smtpu [10.0.0.52])
+ by storage (Cyrus v2.3.7-Invoca-RPM-2.3.7-1.1) with LMTPA;
+ Mon, 26 Dec 2011 20:49:16 +0200
+Message-ID: <4EF8C1A5.1060708@example.com>
+Date: Mon, 26 Dec 2011 20:49:09 +0200
+From: Homer <homer@example.com>
+MIME-Version: 1.0
+To: Marge <marge@example.com>
+Subject: why
+Content-Type: text/plain; charset=UTF-8; format=flowed
+Content-Transfer-Encoding: 7bit
+
+Because they're stupid, that's why. That's why everybody does everything!
+
+ -Homer
diff --git a/comm/mail/test/browser/composition/data/xunsent.eml b/comm/mail/test/browser/composition/data/xunsent.eml
new file mode 100644
index 0000000000..dab78a0b7f
--- /dev/null
+++ b/comm/mail/test/browser/composition/data/xunsent.eml
@@ -0,0 +1,14 @@
+Message-ID: <b48374f7-d539-4547-b239-7217b8debed9@test>
+Date: Mon, 2 Oct 2023 14:31:45 +0300
+MIME-Version: 1.0
+User-Agent: Thunderbird Daily
+Content-Language: en-US
+X-Unsent: 1
+To: Alice <alice@test>
+From: Carol <carol@test>
+Subject: xx unsent
+X-Mozilla-Draft-Info: internal/draft; vcard=0; receipt=0; DSN=0; uuencode=0;
+ attachmentreminder=0; deliveryformat=0
+Content-Type: text/plain
+
+This is a draft.