I’m 99% sure I haven’t vibe coded my way to a real solution, but I think could be narrowed down a bit.
- Incoming calendar invites are
Content-Type: text/calendar; - 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:
- 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
- The system would need to basically create an .ics file attachment based on the data it finds after
Content-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.