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)
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.