Hi, We are trying to use the following code on an ANSI pst file:
LicenseLoader.Load();
using (PersonalStorage personalStorage = PersonalStorage.FromFile(pstFile.FullName))
{
if (personalStorage.Store.Properties.ContainsKey(MapiPropertyTag.PR_PST_PASSWORD))
{
var property = new MapiProperty(MapiPropertyTag.PR_PST_PASSWORD, BitConverter.GetBytes((long)0));
personalStorage.Store.SetProperty(property);
}
}
It errors out with the following message:
System.NotImplementedException: The ANSI file version editing is not implemented.
at Aspose.Email.Storage.Pst.MessageStore.SetProperty(MapiProperty property)
is this expected? Can this be fixed?
We are using Version 24.2.0
We cannot share a PST at this time, but this one shared by someone else should do the trick:
Welcome to our support forum.
ANSI PST is an older format that is not fully supported by Aspose.Email because it is practically not used at present.
As a workaround, you can create a new PST and copy items from the old file to the new one.
If you just need to remove the password, then we can consider this feature for ANSI PST.
But if we are talking about full support for creating and writing this PST version, this implementation would require too much time and resources, which is unacceptable for us as ANSI PST is very outdated and not in demand nowadays.
Only reading is supported for ASCII PST, everything about writing (adding, deleting, creating, modifying) is not supported.
We can consider an implementation related to password handling.
Unfortunately, due to the outdated ANSI version, this task is not a high priority, which extends its implementation timeline. We have set the target version for this functionality as 24.11.