Not able to convert .ics file to PST format using aspose lib getting below error.
C:\Users\Tejas>python calendarissue.py
Traceback (most recent call last):
File “mailissue.py”, line 57, in
run()
File “mailissue.py”, line 49, in run
appointment = Appointment.load(f.file_directory)
RuntimeError: Proxy error: The specified string is not in the form required for an e-mail address.
Attaching zip file containing the code and .ics file
The issue you are encountering can be resolved by using the ignore_smtp_address_check property of the AppointmentLoadOptions class. This property allows the library to bypass strict validation of SMTP addresses in the .ics file.
Here’s an example code snippet to handle this:
from aspose.email.calendar import Appointment, AppointmentLoadOptions
# Create load options and set ignore_smtp_address_check to True
loadOptions = AppointmentLoadOptions()
loadOptions.ignore_smtp_address_check = True
# Load the appointment with the specified options
appointment = Appointment.load(f.file_directory, loadOptions)