support mime encoded attachment name

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@39 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2007-03-14 15:54:39 +00:00
parent c3e80f82fb
commit 163e611bd1
1 changed files with 2 additions and 0 deletions

View File

@ -1324,6 +1324,8 @@ public class ExchangeSession {
if (name.startsWith("\"")) {
name = name.substring(1, name.lastIndexOf("\""));
}
// name can be mime encoded
name = MimeUtility.decodeText(name);
} else if ("boundary".equals(tokenName)) {
boundary = token.substring(equalsIndex + 1);
if (boundary.startsWith("\"")) {