From 48e3016ca190b97992ddcf675bea9fb8f60b6641 Mon Sep 17 00:00:00 2001 From: "Hoa V. Dinh" Date: Wed, 5 Nov 2014 18:32:27 -0800 Subject: Added UTF-8 unit test (Fixed #965) --- unittest/data/summary/input/gh-965-utf8.eml | 33 ++++++++++++++++++++++++++++ unittest/data/summary/output/gh-965-utf8.txt | 13 +++++++++++ 2 files changed, 46 insertions(+) create mode 100644 unittest/data/summary/input/gh-965-utf8.eml create mode 100644 unittest/data/summary/output/gh-965-utf8.txt (limited to 'unittest') 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: +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 ; + 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 ; Mon, 3 Nov 2014 23:02:19 +0000 (UTC) +Date: Mon, 3 Nov 2014 23:02:19 +0000 (UTC) +From: xxxxx +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 +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 -- cgit v1.2.3