oblac / jodd

Jodd! Lightweight. Java. Zero dependencies. Use what you like.
https://jodd.org
BSD 2-Clause "Simplified" License
4.06k stars 724 forks source link

jodd-mail EmailUtil parseEML does not close FileInputStream #228

Closed udlafar closed 9 years ago

udlafar commented 9 years ago

in jodd.mail.EmailUtil parseEML: Message message = new MimeMessage(session, new FileInputStream(emlFile)); MimeMessage from javax.mail/mail/1.4.5 does not close parsed stream so EmailUtil should close it.

igr commented 9 years ago

Thank you!!!