Aspose.Email.Mail.Appointment causes PRODID to be changed

Hi,

When I load Ics file, save it, and open the “source behind” I see:
PRODID:-//Aspose Ltd//iCalender Builder (v3.0)//EN

But in the original file (attached) the “PRODID” header’s value is:
"-//Microsoft Corporation//Outlook 15.0 MIMEDIR//EN"

why the original value is not be saved?

(I have license key)

if you want, the code is:
using (FileStream fIn = File.OpenRead(“original.ics”))
{
Appointment appointment = Appointment.Load(fIn);
using (MemoryStream ms = new MemoryStream())
{
appointment.Save(“after.ics”);
}
}

Please your help,
Thanks a lot,
Roi

Hi Roi,


Aspose.Email uses its iCalendar component for working with Calendar objects. Microsoft Outlook includes its own version information when an appointment is created using it. Similarly, when an appointment saved using Aspose.Email, the API includes its own component’s version number in the output file. In any case, this information doesn’t have any functional effect on the output. Please feel free to write to us in case you have any other query/inquiry in this regard.

Is there anyway to suppress this “PRODID:-//Aspose Ltd//iCalender Builder (v3.0)//EN” or customize it besides opening the file and changing it?

@dfplive,

There is no such way to avoid this similar to Microsoft Outlook which includes its own Product ID while generating the file. However, you can remove the line from ICS file using something similar with C#.