Browse our Products

Aspose.Email for Java 21.6 Release Notes

All Changes

KeySummaryCategory
EMAILJAVA-34890Email text missing contentBug
EMAILNET-40252AppointmentStateFlags missing when saving calendar to MSG fileBug
EMAILNET-40228Enumerating MAPI messages throws InvalidOperationExceptionBug
EMAILJAVA-34891Possible regression: mailMessage.getHtmlBodyText(true) returns different contentBug
EMAILNET-40271Exception was thrown when getting multiple EWS clients at the same timeBug
EMAILNET-40269Connection with Exchange 2013 SP1 fails using EWSClientEnhancement
EMAILNET-40215ImapClient.SelectFolder method throws OperationCanceledExceptionEnhancement
EMAILNET-40244Add support for “Return request client ID” identifierFeature
EMAILJAVA-34892Extraction of body text is extremely slow for MSG filesEnhancement

New Enhancements

Using a return-client-request-id HTTP header in the EWSClient

The return-client-request-id header is sent in the request and used by the server to determine whether the client-request-id header specified by the client should be returned in the server response.

We have added the ReturnClientRequestId property to EWSClient:

// Gets or sets a value to indicate whether 
// the client requires the server-side to return the request-id.
public boolean getReturnClientRequestId, setReturnClientRequestId

Code sample:

try (IEWSClient client = createEWSClient())
{
    // Client will create random id and pass it to the server.
    // The server should include this id in request-id header of all responses.
    client.setReturnClientRequestId(true);
    
    client.setLogFileName("ews.log");
    client.getMailboxInfo();
}