Delete messages from PST

Aspose.Email for Java 17.4.0 has been released. This month’s release provides the capability to permanently delete messages from Outlook PST file. It also supports new MAPI property in addition to the already set of supported properties. Other than these exciting new features, the API also fixes several bugs reported with the last version by our valued customers. For a complete list of what is new and fixed, please visit the release notes section of Aspose.Email for Java 17.4.0.

Permanently Delete Messages from PST

This month’s release enhances the functionality of deleting messages from PST file such that deleted messages won’t be recoverable from the file anymore. In situations, where the PST file needs to be handed over to another party after extracting desired messages, this is helpful in the sense that deleted messages are no more recoverable by any forensic tool. There are no public API changes to incorporate this functionality in your applications and upgrading to this latest version will do the needful.

Support for PT_FLOAT Mapi Property

Aspose.Email is rich in features while working with Outlook MSG files. It’s support for reading and setting wide range of MAPI properties for Outlook MSG file makes it favorite for manipulating such type of messages. This months’ release further enhances the capability of working with MAPI properties by providing support for a new property i.e. PT_FLOAT. This further enriches the set of properties supported by the API. Following code illustrates how to set this property for a MSG file using Aspose.Email API.

float floatValue = 123.456F;
MapiMessage newMsg = new MapiMessage();
long floatTag = newMsg.getNamedPropertyMapping().getNextAvailablePropertyId(MapiPropertyType.PT_FLOAT);
UUID guid = UUID.randomUUID();
MapiProperty newMapiProperty = new MapiProperty(floatTag, BitConverter.getBytesSingle(floatValue));
newMsg.getNamedPropertyMapping().addNamedPropertyMapping(newMapiProperty,(long) 12, guid);

boolean propertyIsOk = false;
for (MapiNamedProperty prop : (Iterable) newMsg.getNamedProperties().getValues())
    if (prop.getGuid().equals(guid))
        float val = prop.getFloat();
        propertyIsOk = val == floatValue;

Other Improvements

This month’s release also includes several bug fixes that were reported by our users with the previous release. Details about these can be found in the release notes section of this month’s release.

API Resources

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