commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kushal J (JIRA)" <j...@apache.org>
Subject [jira] [Created] (EMAIL-159) Parse exception when parsing the email content
Date Wed, 14 Oct 2015 10:18:05 GMT
Kushal J created EMAIL-159:
------------------------------

             Summary: Parse exception when parsing the email content
                 Key: EMAIL-159
                 URL: https://issues.apache.org/jira/browse/EMAIL-159
             Project: Commons Email
          Issue Type: Bug
    Affects Versions: 1.4
            Reporter: Kushal J
            Priority: Critical


Hi Team,
We have an application that reads the email and extracts the attachment from the email. For
certain emails we are seeing below issue, can you please check if anything  missed out from
our side or is it the bug.

javax.mail-api Version : 1.5.3
commons-email Version : 1.4

Email Header information for failure

Subject: =?utf-8?q?YYYY?=
=?utf-8?Q?=C3=A9p=C3=B4t_ZZZ_ZZZ_41/2015_-_PPP_XXX?=
Message-Id: <20151012_101748_C1_00cb45e6_C2_00003011_Name_00013321697@htm-group.com>
X-Priority: 3
Importance: Normal
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=_NextPart_03254=_=63839"
Content-Transfer-Encoding: 7bit

Email Header information for Success


Subject: PPP : Stocks XXX 41/2015 -ZZZZ
Message-Id: <20151012_104902_C1_00cb854d_C2_00001ddf_Name_00013337928@htm-group.com>
X-Priority: 3
Importance: Normal
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=_NextPart_09373=_=37676"
Content-Transfer-Encoding: 7bit

These 2 emails are sent from the same email ID, but we are getting ParseException when we
are trying to parse the above 1st header.


Exception trace

javax.mail.internet.ParseException: Expected parameter value, got "="
        at javax.mail.internet.ParameterList.<init>(ParameterList.java:256)
        at javax.mail.internet.ContentDisposition.<init>(ContentDisposition.java:100)
        at javax.mail.internet.MimeBodyPart.getDisposition(MimeBodyPart.java:1085)
        at javax.mail.internet.MimeBodyPart.getDisposition(MimeBodyPart.java:318)




Please help us in fixing this issue.


Regards,
Kushal J



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message