bridge thread replies from matrix to email

This commit is contained in:
Aine
2022-11-10 21:58:29 +02:00
parent 19dec770b9
commit f835a7560d
6 changed files with 78 additions and 35 deletions

View File

@@ -48,6 +48,7 @@ type ContentOptions struct {
InReplyToKey string
SubjectKey string
FromKey string
ToKey string
}
// AddressValid checks if email address is valid
@@ -122,6 +123,7 @@ func (e *Email) Content(threadID id.EventID, options *ContentOptions) *event.Con
options.InReplyToKey: e.InReplyTo,
options.SubjectKey: e.Subject,
options.FromKey: e.From,
options.ToKey: e.To,
},
Parsed: parsed,
}