handle multiple emails in header 'To'

This commit is contained in:
Aine
2023-01-09 16:23:54 +02:00
parent 1e9558c1fc
commit ac9c27aa32
3 changed files with 7 additions and 2 deletions

View File

@@ -275,7 +275,7 @@ func (e *parentEmail) fixtofrom(newSenderMailbox string, domains []string) {
// Recipients returns list of recipients (to, cc)
func (e parentEmail) Recipients() []string {
return append(email.AddressList(e.CC), e.To)
return append(email.AddressList(e.CC), strings.Split(email.Address(e.To), ",")...)
}
func (b *Bot) getParentEvent(evt *event.Event) (id.EventID, *event.Event) {