summaryrefslogtreecommitdiffstats
path: root/test/fixtures
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2016-03-04 06:55:55 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2016-03-04 06:55:55 +0000
commite28cc10a35a9390faef72689148e762ac3425ae0 (patch)
tree916b772fee06bf61ac61edb35f134c74c99ed92a /test/fixtures
parent3ac315301a1221f37996cbdf1cbde12740a38912 (diff)
downloadredmine-e28cc10a35a9390faef72689148e762ac3425ae0.tar.gz
redmine-e28cc10a35a9390faef72689148e762ac3425ae0.zip
add test which ensure received mail text attachment keeps original encoding (#21742)
This test fails on Ruby >= 2.1 and will be fixed by next revision. Contributed by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@15183 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/mail_handler/ticket_with_text_attachment_iso-8859-2.eml31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/fixtures/mail_handler/ticket_with_text_attachment_iso-8859-2.eml b/test/fixtures/mail_handler/ticket_with_text_attachment_iso-8859-2.eml
new file mode 100644
index 000000000..56f1a7214
--- /dev/null
+++ b/test/fixtures/mail_handler/ticket_with_text_attachment_iso-8859-2.eml
@@ -0,0 +1,31 @@
+Date: Thu, 14 Jan 2016 18:32:45 +0100
+From: John Smith <JSmith@somenet.foo>
+To: redmine@somenet.foo
+Message-ID: <7A3.L9Yi.1Ki1}PMZiV5.1Mbzkz@seznam.cz>
+Subject: issue #21742
+Mime-Version: 1.0
+Content-Type: multipart/mixed;
+ boundary="=_08d580646981073f1a667ba3=898e56d9-3d29-5ed2-9c9a-cc3a5d9474b5_=";
+ charset=UTF-8
+Content-Transfer-Encoding: 7bit
+X-Mailer: szn-ebox-4.5.88
+
+
+--=_08d580646981073f1a667ba3=898e56d9-3d29-5ed2-9c9a-cc3a5d9474b5_=
+Content-Type: text/plain;
+ charset=utf-8
+Content-Transfer-Encoding: base64
+
+
+--=_08d580646981073f1a667ba3=898e56d9-3d29-5ed2-9c9a-cc3a5d9474b5_=
+Content-Type: text/plain;
+ charset=UTF-8;
+ name=latin2.txt
+Content-Transfer-Encoding: quoted-printable
+Content-Disposition: attachment;
+ filename=latin2.txt;
+ size=19
+
+p=F8=EDli=B9 =BEluou=E8k=FD k=F9n=
+
+--=_08d580646981073f1a667ba3=898e56d9-3d29-5ed2-9c9a-cc3a5d9474b5_=--