Browse our Products

Aspose.Email for .NET 23.6 Release Notes

All Changes

KeySummaryCategory
EMAILNET-40801Improvement in CheckSignature methodFeature
EMAILNET-41086Email address is not valid when loading a task item (MapiTask.fromVTodo)Enhancement
EMAILNET-41070Signature preserving is not supported by defaultEnhancement
EMAILNET-41034Aspose.Email.MapiMessage.load method throws error while loading some emailsBug
EMAILNET-41093Some fields are empty when save vcardBug
EMAILNET-41059TnefLoadOptions.PreserveEmbeddedMessageFormat = True is not honoredBug
EMAILNET-41043NullReferenceException when using SaveAllHeaders and RenderTaskFieldsBug
EMAILNET-41085Not able to convert MapiMessage to MapiTaskBug
EMAILNET-41082VCardContact nickname not written to vcfBug
EMAILNET-41089GraphClient does not send attachement of mailBug
EMAILNET-41096When license is set - mht is saved incorrectlyBug
EMAILNET-41081How to set Followup flag to MapiContact, MapiTask and MapiJournal while creating PSTBug
EMAILNET-40942MailMessage.CheckSignature IssueBug
EMAILNET-41025Encrypted and signed emails are not converted correctly from Mbox to PstBug
EMAILNET-41063Appointment.Save exceptionBug

New Features

Signature Preservation and Removal

  1. Signature preservation is now supported by default in mbox to pst conversion. Added a new MboxToPstConversionOptions.RemoveSignature property, to indicate whether the signature should be removed during conversion. You can set this property to true to remove the signature.

    Public API changes:

    • Added MboxToPstConversionOptions.RemoveSignature property.

    Example usage:

    var pstDataStream = new MemoryStream();
    var personalStorage = PersonalStorage.Create(pstDataStream, FileFormatVersion.Unicode);
    MailStorageConverter.MboxToPst(new MboxrdStorageReader(new FileStream(fileName, FileMode.Open, FileAccess.Read), new MboxLoadOptions()),
        personalStorage,
        "Inbox",
        new MboxToPstConversionOptions() { RemoveSignature = true });
    
  2. Signature preservation is now supported by default when loading EML files. Added a new LoadOptions.RemoveSignature property, to indicate whether the signature should be removed during loading. You can set this property to true to remove the signature.

    Public API changes:

    • Added LoadOptions.RemoveSignature property.

    Example usage:

    var msg = MapiMessage.Load(fileName, new EmlLoadOptions() { RemoveSignature = true});
    

API Enhancement: Secure Email Signature Checking

  • Added a new SecureEmailManager class for checking the signature of secure emails. You can now check the signature of MapiMessage and MailMessage objects.
  • Added a new SmimeResult class to store the results of checking secure emails.

Public API changes:

  • Added SecureEmailManager.CheckSignature(MapiMessage msg) method.
  • Added SecureEmailManager.CheckSignature(MapiMessage msg, X509Certificate2 certificateForDecrypt) method.
  • Added SecureEmailManager.CheckSignature(MapiMessage msg, X509Certificate2 certificateForDecrypt, X509Store store) method.
  • Added SecureEmailManager.CheckSignature(MailMessage msg) method.
  • Added SecureEmailManager.CheckSignature(MailMessage msg, X509Certificate2 certificateForDecrypt) method.
  • Added SecureEmailManager.CheckSignature(MailMessage msg, X509Certificate2 certificateForDecrypt, X509Store store) method.

Example usage:

var eml = MailMessage.Load(fileName);
var result = new SecureEmailManager().CheckSignature(eml);
var msg = MapiMessage.Load(fileName, new EmlLoadOptions());
var result = new SecureEmailManager().CheckSignature(msg);
var certFileName = "cert.pfx";
var cert = new X509Certificate2(certFileName, "pass");
var eml = MailMessage.Load(fileName);
var store = new X509Store();
store.Open(OpenFlags.ReadWrite);
store.Add(cert);
store.Close();

var result = new SecureEmailManager().CheckSignature(eml, cert, store);