This content has been marked as final. Show 3 replies
A bug was fixed in this area recently. Please try JavaMail 1.4.6 or newer.
If that doesn't solve the problem, make sure the header has whitespace between the "?="
that ends one encoded part and the "=?" that starts the next encoded part. If it doesn't,
that's a bug in the program that created the message. Try setting the "mail.mime.decodetext.strict"
System property to "false" to work around this bug in the message formatting.
I tried setting "mail.mime.decodetext.strict" to false,but it is not working.
while I am trying to get filename, it throws javax.mail.internet.ParseException: Unbalanced quoted string .
Also I tried working with the newer version of javamail, but the result is same.
Please help or provide any workaround for this issue.
The property you want is "mail.mime.parameters.strict". Be sure to set it as a System property.