Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2022-08-23 23:57:12 +0300
committerDaniel Kesselberg <mail@danielkesselberg.de>2022-09-02 16:02:46 +0300
commit50ad334480d4b260ceeefc20b523de89f9878220 (patch)
treee0e8d0444ae1c53ee1aa2ab6348118e41f1c0273 /tests/data
parent2df77810de01a42ad21fdb57a28a83eeeeed0068 (diff)
Create a multipart/related message for html, text and inline images
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/mime-html-image.txt17
-rw-r--r--tests/data/mime-html.txt17
-rw-r--r--tests/data/mime-text.txt7
-rw-r--r--tests/data/nextcloud.pngbin0 -> 21505 bytes
4 files changed, 41 insertions, 0 deletions
diff --git a/tests/data/mime-html-image.txt b/tests/data/mime-html-image.txt
new file mode 100644
index 000000000..c79ca737f
--- /dev/null
+++ b/tests/data/mime-html-image.txt
@@ -0,0 +1,17 @@
+<html>
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+ </head>
+ <body>
+ <p>Hello,</p>
+ <p><br>
+ </p>
+ <p>a test message with <b>plain</b> <b>text</b> and <b>html</b>
+ 😎</p>
+ <p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot" />
+ </p>
+ <p>Greetings!</p>
+ <p>Bob<br>
+ </p>
+ </body>
+</html>
diff --git a/tests/data/mime-html.txt b/tests/data/mime-html.txt
new file mode 100644
index 000000000..b9445c2b5
--- /dev/null
+++ b/tests/data/mime-html.txt
@@ -0,0 +1,17 @@
+<html>
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+ </head>
+ <body>
+ <p>Hello,</p>
+ <p><br>
+ </p>
+ <p>a test message with <b>plain</b> <b>text</b> and <b>html</b>
+ 😎</p>
+ <p><br>
+ </p>
+ <p>Greetings!</p>
+ <p>Bob<br>
+ </p>
+ </body>
+</html>
diff --git a/tests/data/mime-text.txt b/tests/data/mime-text.txt
new file mode 100644
index 000000000..46b484534
--- /dev/null
+++ b/tests/data/mime-text.txt
@@ -0,0 +1,7 @@
+Hello,
+
+a simple text message here
+
+--
+
+Jane Doe
diff --git a/tests/data/nextcloud.png b/tests/data/nextcloud.png
new file mode 100644
index 000000000..12824cb18
--- /dev/null
+++ b/tests/data/nextcloud.png
Binary files differ