aboutsummaryrefslogtreecommitdiffhomepage
path: root/unittest
diff options
context:
space:
mode:
authorGravatar Hoa V. Dinh <dinh.viet.hoa@gmail.com>2014-11-05 18:32:27 -0800
committerGravatar Hoa V. Dinh <dinh.viet.hoa@gmail.com>2014-11-05 18:32:27 -0800
commit48e3016ca190b97992ddcf675bea9fb8f60b6641 (patch)
tree90e4ee83825d8b90062146d6828fa5a3d6a0cc2c /unittest
parentd4799b94e4d99135a153f6304e0696256360353a (diff)
Added UTF-8 unit test (Fixed #965)
Diffstat (limited to 'unittest')
-rw-r--r--unittest/data/summary/input/gh-965-utf8.eml33
-rw-r--r--unittest/data/summary/output/gh-965-utf8.txt13
2 files changed, 46 insertions, 0 deletions
diff --git a/unittest/data/summary/input/gh-965-utf8.eml b/unittest/data/summary/input/gh-965-utf8.eml
new file mode 100644
index 00000000..33052dc0
--- /dev/null
+++ b/unittest/data/summary/input/gh-965-utf8.eml
@@ -0,0 +1,33 @@
+Delivered-To: rong@xxxxx.com
+Received: by 10.70.100.99 with SMTP id ex3csp361721pdb;
+ Mon, 3 Nov 2014 15:02:24 -0800 (PST)
+X-Received: by 10.70.31.2 with SMTP id w2mr6070686pdh.128.1415055739733;
+ Mon, 03 Nov 2014 15:02:19 -0800 (PST)
+Return-Path: <support@xxxxx.com>
+Received: from JavaServer.localdomain (ec2-54-69-43-142.us-west-2.compute.amazonaws.com. [54.69.43.140])
+ by mx.google.com with ESMTP id mc2si16351177pdb.193.2014.11.03.15.02.19
+ for <rong@xxxxx.com>;
+ Mon, 03 Nov 2014 15:02:19 -0800 (PST)
+Received-SPF: softfail (google.com: domain of transitioning support@xxxxx.com does not designate 54.69.43.140 as permitted sender) client-ip=54.69.43.140;
+Authentication-Results: mx.google.com;
+ spf=softfail (google.com: domain of transitioning support@xxxxx.com does not designate 54.69.43.140 as permitted sender) smtp.mail=support@xxxxx.com
+Received: from localhost (localhost [127.0.0.1])
+ by JavaServer.localdomain (Postfix) with ESMTP id 0DF51178077
+ for <rong@xxxxx.com>; Mon, 3 Nov 2014 23:02:19 +0000 (UTC)
+Date: Mon, 3 Nov 2014 23:02:19 +0000 (UTC)
+From: xxxxx <support@xxxxx.com>
+Reply-To: support@xxxxx.com
+To: rong@xxxxx.com
+Message-ID: <926811750.37.1415055739022.JavaMail.javamailuser@localhost>
+Subject: Welcome to APPNAME
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: quoted-printable
+
+Welcome to APPNAME=E2=84=A2.
+
+Thanks for joining us!
+
+
+Sincerely,
+The dev team
diff --git a/unittest/data/summary/output/gh-965-utf8.txt b/unittest/data/summary/output/gh-965-utf8.txt
new file mode 100644
index 00000000..91c78edf
--- /dev/null
+++ b/unittest/data/summary/output/gh-965-utf8.txt
@@ -0,0 +1,13 @@
+From:xxxxx<support@xxxxx.com>
+To:rong@xxxxx.com
+Subject:Welcome to APPNAME
+Date:November 3, 2014 at 3:02:19 PM PST
+
+
+Welcome to APPNAMEā„¢.
+
+Thanks for joining us!
+
+
+Sincerely,
+The dev team