From bae336cad9449a4bdf1be4d7d4574db1ace05845 Mon Sep 17 00:00:00 2001 From: mguessan Date: Thu, 9 Dec 2010 20:56:51 +0000 Subject: [PATCH] Adjust Mime decoder settings git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1572 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/ExchangeSession.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/java/davmail/exchange/ExchangeSession.java b/src/java/davmail/exchange/ExchangeSession.java index 9b8b2947..aea466ef 100644 --- a/src/java/davmail/exchange/ExchangeSession.java +++ b/src/java/davmail/exchange/ExchangeSession.java @@ -103,6 +103,12 @@ public abstract class ExchangeSession { protected static final String JUNK = "Junk"; protected static final String UNSENT = "Unsent Messages"; + static { + // Adjust Mime decoder settings + System.setProperty("mail.mime.ignoreunknownencoding", "true"); + System.setProperty("mail.mime.decodetext.strict", "true"); + } + protected String publicFolderUrl; /**