Rambou / TXT-to-Mbox

Converting txt files into a unique mbox file.
MIT License
0 stars 0 forks source link

Mbox java.text.ParseException #2

Open dunglehome opened 4 years ago

dunglehome commented 4 years ago

Hello Rambou,

After successfully compile the project I ran the command and got this error, can you please guide me how to fix this issue. Thank you!

C:\Users\duour\Documents\NetBeansProjects\txtMbox\dist>java -jar txt_to_mbox.jar txt mbox Oct 31, 2019 8:53:17 AM Main main SEVERE: null java.text.ParseException: Unparseable date: "April 11, 2018 at 8:38" at java.text.DateFormat.parse(DateFormat.java:366) at Main.main(Main.java:101)

C:\Users\duour\Documents\NetBeansProjects\txtMbox\dist>

Below is sample txt email for testing


From: Dung Cassies Sent: Thursday, April 26, 2018 3:52 PM To: 'tarsdeacoffsn@conrxdfhio.com' Subject: Ljlsfner Mcsfhnaty

I received your phone message.

You can get photos through the shopping cart feature in our online database

http://www.glajuebqew.org/search/archihotosoolch.aspx

Just put Mcsfhnatyin the keywords box.

Dung

Dung E. Cassies Director, Library and Archives slllsa@conrxdfhio.org

10 19 Avenue SE Calgary, Alberta T5G 0P4 D 403 443 4203 F 403 567-3356 conrxdfhio.org


Thanks again for any help!

Dung.

Rambou commented 4 years ago

Hi, @dunnleaddress indeed seems that there is a date parsing bug. The format of your Date does not comply with the one expected. This could be fixed by parsing a date with natty

dunglehome commented 4 years ago

Thank you @Rambou for your reply I will try natty.