Aspose.Email for Java 20.4 Release Notes

All Changes

EMAILNET-39783Support for the ability to Ignore exceptionsEnhancement
EMAILNET-39786Get message infos by unique identifiers for Pop3Client and ImapClientEnhancement
EMAILJAVA-34684Message fails to process with ArgumentExceptionBug
EMAILNET-39799Space getting removed while saving OFT to MSGBug
EMAILNET-39797ArgumentOutOfRangeException occurs when loading MailMessage from an html fileBug
EMAILNET-39773Filtering downloaded messages using ImapQueryBuilder failsBug
EMAILNET-39776Unable to download message listBug
EMAILNET-39770System.ArgumentOutOfRangeException while loading a MSGBug
EMAILNET-39764How to set description(body) for modified occurenceBug
EMAILNET-39790ReplyMessageBuilder.buildresponse fails while building a response if attachments are presentBug
EMAILNET-39789Converted MSG to EML does not have From addressBug
EMAILNET-39792MSG to EML output wrong (Plain Text)Bug
EMAILNET-39791ImapClient crashes application even called in try catchBug
EMAILJAVA-34688The method ITokenProvider.getAccessToken is not calledBug

New features

Support for the ability to ignore exceptions

We have prepared a new functionality to ignore exceptions - ExceptionManager class has been added to provide ignore exceptions ability:

 public class ExceptionManager

Code examples:

Set a callback to handle exceptions:

 ExceptionManager.setIgnoreExceptionsHandler( new IgnoreExceptionsCallback() {

   //exception path: {Module}\{Method}\{Action}\{GUID}

   //example: MailMessage\Load\DecodeTnefAttachment\64149867-679e-4645-9af0-d46566cae598

   public boolean invoke(AsposeException ex, String path) {

       //Ignore all exceptions on MailMessage.Load

       return path.equals("MailMessage\\Load");



Or use an alternative:


Also, you can set a callback for ignored exceptions log:

 ExceptionManager.setIgnoreExceptionsLogHandler( new IgnoreExceptionsLogCallback() {

   public void invoke(String message) {

        System.out.println("=== EXCEPTION IGNORED === " + message);



The user will be notified, that the exception can be ignored by an error message. For example:

 Exceptioin message:

AsposeArgumentException: properties should not be empty.

If you want to ignore an exception and want to proceed further then you can use:


Invalid TNEF Attachment will be interpreted as regular attachment.