0

I have a small service with creating and sending an email with "inline" attachment which contains .ics file with n-count events, how created using the ical4j library.

  • If I send it to Outlook/Gmail calendar it synchronizes correctly to all days.
  • If I send it to Lotus Notes calendar it synchronizes only first day.

Is it Lotus Notes calendar feature or am I making some mistakes?

GitHub repo

Thanks in advance

Google Drive link to .ics file

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
  • Could you include the content of the ICS file? The problem may be in the final formatting of the multiple dates. – teleman Oct 29 '18 at 14:29
  • @teleman Added, check – Seva Gaputin Oct 29 '18 at 14:41
  • What if you change the METHOD to PUBLISH instead of REQUEST ? – teleman Oct 29 '18 at 15:51
  • @teleman Nothing change, only first day synchronizes. Lotus remove all events without first. [link to modified ics](https://drive.google.com/open?id=1aI9Ef0bTZae2ksKpFs5442nCiZrfSdJj) – Seva Gaputin Oct 29 '18 at 15:57
  • A hexdump on the ICS file shows 3 characters/bytes preceding the BEGIN text -- "o;?" Whatever is generating the ICS file is putting in those bytes which are not displayed in an editor. Remove those 3 bytes and the file is readable for Notes calendar. – teleman Oct 29 '18 at 19:08
  • 1
    Yes, see https://stackoverflow.com/questions/2223882/whats-different-between-utf-8-and-utf-8-without-bom about the BOM, byte-order mark. See if you can have the ICS file generated in UTF-8 without the BOM (EE BB BF). – teleman Oct 29 '18 at 20:25

1 Answers1

0

Set the Mime header for Content-Type in iCal4J for the iCal file:

Content-Type: text/calendar; charset="utf-8"
teleman
  • 940
  • 7
  • 24