GroupDocs.Metadata for .NET 24.10 Release Notes

Major Features

There are the following features, enhancements, and fixes in this release:

  • More .msg properties now editable
  • Add support for read .fb2 format
  • For example add support .NET 8.0

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
METADATANET-4099Add editing support for some email propertiesNew Feature
METADATANET-4077Support FB2 format readonlyNew Feature
METADATANET-4084Add .NET 8 supportNew Feature

Public API and Backward Incompatible Changes

Implement the ability to configure cache for heavy operations

Public API changes

The Fb2RootPackage class has been added to the GroupDocs.Metadata.Formats.Ebook namespace

Use cases

Set .msg properties

using (Metadata metadata = new Metadata(path))
{
    var msgFormat = metadata.GetRootPackage<MsgRootPackage>();
    msgFormat.EmailPackage.Sender = sender;
    msgFormat.EmailPackage.DeliveryTime = deliveryTime;
    msgFormat.EmailPackage.ClientSubmitTime = clientSubmitTime;
    msgFormat.EmailPackage.Headers.Set(headerName, new PropertyValue(headerValue));
    msgFormat.EmailPackage.Headers.Set(headerNameChange, new PropertyValue(headerValueChange));
    msgFormat.EmailPackage.Headers.Set(headerSIDName, new PropertyValue(headerSIDValue));
    metadata.Save(outputPath);
}

Read .fb2 properties

using (Metadata metadata = new Metadata(Constants.InputFb2))
{
    var root = metadata.GetRootPackage<Fb2RootPackage>();

    Console.WriteLine(root.Fb2Package.TitleInfo.BookTitle);
    Console.WriteLine(root.Fb2Package.TitleInfo.Lang);
    Console.WriteLine(root.Fb2Package.TitleInfo.SrcLang);
    Console.WriteLine(root.Fb2Package.DocumentInfo.ProgramUsed);
}