Aspose Email fails to parse eml with calendar invite with an attendee containing an empty mailto

An empty mailto is valid - mailto - Wikipedia.

We have a calendar invite with an attendee that has an empty mailto - e.g. -

ATTENDEE;CN=John Doe;CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED:Mailto:/O=ABC/OU=DEF (GHI)/CN=JKL/CN=ABCDEFG

When we try to parse this calendar invite using Aspose Email as follows …

ByteArrayInputStream appointmentInputStream = new ByteArrayInputStream(calendarInviteBytes)) {
Appointment appointment = Appointment.load(appointmentInputStream, APPOINTMENT_LOAD_OPTIONS);

… then it fails with an exception as follows …

com.aspose.email.system.exceptions.FormatException: The specified string is not in the form required for an e-mail address.
com.aspose.email.MailAddress.a(SourceFile:847)
com.aspose.email.MailAddress.d(SourceFile:741)
com.aspose.email.MailAddress.(SourceFile:149)
com.aspose.email.MailAddress.(SourceFile:101)
com.aspose.email.MailAddress.(SourceFile:177)
com.aspose.email.zhf.a(SourceFile:788)
com.aspose.email.zhf.e(SourceFile:491)
com.aspose.email.zhf.b(SourceFile:233)
com.aspose.email.Appointment.a(SourceFile:1491)
com.aspose.email.Appointment.load(SourceFile:1473)

Could you please look into this.

Thanks

Hello @gs01,

It seems that in your case the mailto is not empty, but has the value “/O=ABC/OU=DEF (GHI)/CN=JKL/CN=ABCDEFG”, which is not valid.

Even if mailto is empty, it still throws an exception. Can you confirm if this is intended behaviour and not a bug.

… Also, if the AD details in a mailto does not contain an email address, it is still valid.

@gs01
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): EMAILNET-41180

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hi @margarita.samodurova,
We, Global Relay, are a paying customer for Aspose.WORD and Aspose.EMAIL for Java. Could you bump up the priority and let us know the estimated duration of the fix?

Thank you in advance.
Regards
Varun

Hello @vsingh52, @gs01

I’m sorry, I forgot to mention. Have you tried using AppointmentLoadOptions.setIgnoreSmtpAddressCheck(true) according to Working with Appointments|Documentation

Please share your feedback about it.