james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tellier Benoit (JIRA)" <mime4j-...@james.apache.org>
Subject [jira] [Commented] (MIME4J-267) Unable to read such a date header "Date: Fri, 05 Jan 2018 16:18:28 Z"
Date Wed, 17 Jan 2018 09:04:00 GMT

    [ https://issues.apache.org/jira/browse/MIME4J-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16328514#comment-16328514
] 

Tellier Benoit commented on MIME4J-267:
---------------------------------------

Digging a bit further, it turns out DateTimeFieldLenientImpl is based on Java date formats
that requires a timezone. Z in your date header is assimilated as "no timezone" thus causes
the parser to fail.

We should rather support formats that do not contain timezone as well.

> Unable to read such a date header "Date: Fri, 05 Jan 2018 16:18:28 Z"
> ---------------------------------------------------------------------
>
>                 Key: MIME4J-267
>                 URL: https://issues.apache.org/jira/browse/MIME4J-267
>             Project: James Mime4j
>          Issue Type: Bug
>    Affects Versions: 0.8.1
>            Reporter: Raffaele Gambelli
>            Priority: Major
>
> I have many attached eml files, many of them have their date expressed in this manner:
> Date: Fri, 05 Jan 2018 16:18:28 Z
> Mime4j is not able to format that pattern, I receive null for it
> Javamail is able to read it.
> Thanks
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message