Page Wise Messages Filtering from Exchange Server with Aspose.Email for Java

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

Aspose.Email for Java 17.7 has been released. Ported from its equivalent .NET version, this month’s release includes the same enhancements and bug fixes that improve the API functionality. These enhancements to various functional areas of API enrich the API features and add to the value of the API. For a complete list of what is new and fixed, please visit the release notes page of Aspose.Email for Java 17.7.

Enhancements

Reading Multiple Events from ICS Files: Aspose.Email for Java API now supports reading multiple events from iCalendar (ICS) files. The CalendarReader class introduced in this month’s release allows to read all events from such an ICS file. It also provides the capability to read events from a specific index in the ICS file as shown in the code sample below.

String dataDir = Utils.getSharedDataDir(DisplayEmailInformation.class) + "email/";
List appointments = new ArrayList();
CalendarReader reader = new CalendarReader(dataDir + "US-Holidays.ics");
while (reader.nextEvent())
{
    appointments.add(reader.getCurrent());
}
		
System.out.println("Number of events read: " + appointments.size());
//Process appointments loaded from events

//Reading events from a specific index
appointments = new ArrayList();
AppointmentLoadOptions options = new AppointmentLoadOptions();
options.setEventIndex(4);
reader = new CalendarReader(dataDir + "US-Holidays.ics", options);
//start reading from 4th appointment...
while (reader.nextEvent())
{
    appointments.add(reader.getCurrent());
}

Filtering Messages from Exchange with Paging Support: The API already supports criterion based messages filtering from Exchange server mailbox. However, this can result in large number of messages if lots of emails meet this criterion. To cater for this, we have enhanced the functionality to filter messages from Exchange server with Paging support.

Preserving Embedded Messages Format in EML: Embedded messages format in EML files can now be preserved during loading with EMLLoadOptions class. This can help identify the original format of attachment in email.

Reading Message Size from MBox File: We have also enhanced the functionality of working with MBox files by providing the facility of reading message size during message extraction.

API Resources

We have detailed information available online for getting started with the Aspose.Email for Java API. These are:


To keep up with our news, you can follow us on Twitter or follow our Facebook page.

Leave a Reply