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:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user