We have an object that automatically checks an email address through a POP3/SMTP server about every 5 minutes. One email that was sent in had an encoding on it of sevenbit. As soon as that came it threw an error.
java.io.IOException: Unknown encoding: sevenbit
at javax.mail.internet.MimePa
rtDataSour
ce.getInpu
tStream(Mi
mePartData
Source.jav
a:70)
at com.sun.mail.handlers.text
_plain.get
Content(te
xt_plain.j
ava:64)
at javax.activation.DataSourc
eDataConte
ntHandler.
getContent
(DataHandl
er.java:74
5)
at javax.activation.DataHandl
er.getCont
ent(DataHa
ndler.java
:501)
at javax.mail.internet.MimeMe
ssage.getC
ontent(Mim
eMessage.j
ava:1339)
What can I do to fix this or accommodate this assuming this one source constantly sends in that encoding format this could be an issue. I know my fall back would be to just move the email into a folder on the server or just delete it but I would prefer to be able to accommodate it.
Start Free Trial