1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 17:47:03 +00:00

message: Prefer To header for BeforeMessageStored event (#446)

Signed-off-by: James Hillyerd <james@hillyerd.com>
This commit is contained in:
James Hillyerd
2023-11-22 16:58:14 -08:00
committed by GitHub
parent 3e94aacc20
commit d2121a52a9
2 changed files with 46 additions and 4 deletions

View File

@@ -76,10 +76,12 @@ func (s *StoreManager) Deliver(
// Process inbound message through extensions.
mailboxes := make([]string, len(recipients))
toAddrs := make([]mail.Address, len(recipients))
for i, recip := range recipients {
mailboxes[i] = recip.Mailbox
toAddrs[i] = recip.Address
}
toAddrs := make([]mail.Address, len(toaddr))
for i, addr := range toaddr {
toAddrs[i] = *addr
}
inbound := &event.InboundMessage{