Allowing .ICS calendar files to be sent to a group inbox via email

I’m 99% sure I haven’t vibe coded my way to a real solution, but I think could be narrowed down a bit.

  1. Incoming calendar invites are Content-Type: text/calendar;
  2. That is not one of the Content-Types that is recognized as an attachment by Discourse, it is just seen as part of the email body.

Several things would likely need to be changed:

  1. In discourse/lib/email/receiver.rb at a8cfcfb7ecb4f821391a16baedcc677f71b4db79 · discourse/discourse · GitHub it would need to recognize part.mime_type == “text/calendar” as an attachment type
  2. The system would need to basically create an .ics file attachment based on the data it finds afterContent-Type: text/calendar;

Not sure how likely any of this, but at least this is out there in case anyone else is searching around wondering why it isn’t working.

2 Likes