add send .ics as calendar invite

Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
Ronni Skansing
2026-06-06 09:26:52 +02:00
parent b1bace4cce
commit 432d3d2c74
10 changed files with 156 additions and 23 deletions
+4
View File
@@ -26,6 +26,10 @@ type Attachment struct {
Description string `gorm:";"`
Filename string `gorm:"not null;index"`
EmbeddedContent bool `gorm:"not null;default:false;index"`
// SendAsCalendar sends an ics file as a text/calendar; method=REQUEST
// alternative part so Outlook and Exchange Online render it as a native
// calendar invitation instead of a plain attachment
SendAsCalendar bool `gorm:"not null;default:false;index"`
}
func (Attachment) TableName() string {