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

Tim Allison commented on TIKA-3957:
-----------------------------------

This mod turned out to be much more verbose than what we had.  However, we've 
at least factored date parsing out of the MailContentHandler, and we've made 
the parsers threadsafe instead of creating new SimpleDateFormats for every date.

 

We'll likely want to add the ability to specify custom date formats in the 
RFC822Parser so that users can override the current behavior. 

 

That said, testing is much simpler now, and I think we cover many more cases 
than we did before.

> Refactor email date parsing
> ---------------------------
>
>                 Key: TIKA-3957
>                 URL: https://issues.apache.org/jira/browse/TIKA-3957
>             Project: Tika
>          Issue Type: Task
>            Reporter: Tim Allison
>            Priority: Major
>             Fix For: 2.7.0
>
>
> In looking at mime4j's source code, they have a much more elegant solution 
> for date parsing. Let's use their code as a model and yet add the flexibility 
> that we currently allow.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to