outlook 약속 메일 bug.(Content-Transfer-Encoding: quoted-printable)
header : Content-Transfer-Encoding: quoted-printable
아웃룩에서 인코딩을 정의해 놓고 정작 본문은 평문으로 보냈다.
결국 quoted-printable 로 디코딩되고 , 본문 중 DTEND;VALUE=DATE:20160102 =DA 부분이 quoted-printable 로 인식되어 문제가 발생한다.
handler.body 에는 Content-Transfer-Encoding 로 디코딩된 Stream 이 넘어와
MimeStreamParser.parser(..) 중 T_BODY 에 isWrongInvitingMessageFromOutlook 추가 한다.
apache-mime4j-core-0.7.2.jar 수정.
ㅁ outlook 옵션
- 종일
- 제목 한글
- 위치 : 한글
Return-Path: <a@a.com>
Message-ID: <9841210417970002876.changed>
MIME-Version: 1.0
Delivered-To: a@a.a.kr
Received: from 1.2.2.2(EHLO a.com) ([1.2.2.2])
by localhost.localdomain ( aR&D V1.0 ) with ESMTP ID 157699890
for <a@a.a.kr>;
Tue, 15 Dec 2015 20:02:25 +0900 (KST)
Content-Type: text/calendar; method=REQUEST;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by Apache JAMES
OMessage-ID: <232439876074273787238.changed>
X-Channel: GM
Received: from 1.1.1.231 (EHLO a) ([1.1.1.231])
by localhost.localdomain ( aR&D V1.0 ) with ESMTPA ID 789652285
for <a@a.a.kr>;
Tue, 15 Dec 2015 20:02:24 +0900 (KST)
From: <a@a.com>
To: <a@a.a.kr>
Subject: =?utf-8?B?7KCc66qpIO2VnOq4gCDsnITsuZgg7JiB7Ja0?=
Date: Tue, 15 Dec 2015 20:02:24 +0900
X-Mailer: Microsoft Outlook 15.0
Thread-Index: AdE3KA/veyJMI7inSoCQ+DOjLq36HQAAAOig
Content-Language: ko
BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 15.0 MIMEDIR//EN
VERSION:2.0
METHOD:REQUEST
X-MS-OLK-FORCEINSPECTOROPEN:TRUE
BEGIN:VEVENT
ATTENDEE;CN=a@a.a.kr;RSVP=TRUE:mailto:a@a.a
a.kr
CLASS:PUBLIC
CREATED:20151215T110223Z
DESCRIPTION:\n
DTEND;VALUE=DATE:20160102
DTSTAMP:20151215T110223Z
DTSTART;VALUE=DATE:20160101
LAST-MODIFIED:20151215T110223Z
LOCATION:dddd