System: Debian Jessie, OKM 6.3.1 (upgraded from 6.3.0)
Mail retrieval still breaks when unexpected or malformed Mails occur; this is the latest error message I am getting
2016-10-24 14:00:01,801 [Thread-57804] ERROR com.openkm.util.MailUtils- iso-8859-8-i
java.io.UnsupportedEncodingException: iso-8859-8-i
Consequently, retrieval of the mail in question and all following mails fails. The malformed email (typically spam) needs to be deleted from the mailbox manually.
Is there a way to work around this?
TIA
Matthias
Mail retrieval still breaks when unexpected or malformed Mails occur; this is the latest error message I am getting
Code: Select all
Obviously, the problem pops up here:2016-10-24 14:00:01,801 [Thread-57804] ERROR com.openkm.util.MailUtils- iso-8859-8-i
java.io.UnsupportedEncodingException: iso-8859-8-i
at sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:71)
at java.io.InputStreamReader.<init>(InputStreamReader.java:100)
at com.sun.mail.handlers.text_plain.getContent(text_plain.java:107)
at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:795)
at javax.activation.DataHandler.getContent(DataHandler.java:542)
at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:637)
at com.openkm.util.MailUtils.getText(MailUtils.java:908)
at com.openkm.util.MailUtils.getText(MailUtils.java:952)
at com.openkm.util.MailUtils.messageToMail(MailUtils.java:677)
at com.openkm.util.MailUtils.importMessages(MailUtils.java:602)
at com.openkm.core.UserMailImporter.runAs(UserMailImporter.java:95)
at com.openkm.core.UserMailImporter.run(UserMailImporter.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at bsh.Reflect.invokeMethod(Reflect.java:134)
at bsh.Reflect.invokeObjectMethod(Reflect.java:80)
at bsh.BSHPrimarySuffix.doName(BSHPrimarySuffix.java:176)
at bsh.BSHPrimarySuffix.doSuffix(BSHPrimarySuffix.java:120)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:80)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.Interpreter.eval(Interpreter.java:645)
at bsh.Interpreter.eval(Interpreter.java:739)
at bsh.Interpreter.eval(Interpreter.java:728)
at com.openkm.util.ExecutionUtils.runScript(ExecutionUtils.java:112)
at com.openkm.core.Cron$RunnerBsh.run(Cron.java:103)
at java.lang.Thread.run(Thread.java:745)
2016-10-24 14:00:01,801 [Thread-57804] ERROR com.openkm.util.MailUtils- iso-8859-8-i
java.io.UnsupportedEncodingException: iso-8859-8-i
Consequently, retrieval of the mail in question and all following mails fails. The malformed email (typically spam) needs to be deleted from the mailbox manually.
Is there a way to work around this?
TIA
Matthias