mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 17:47:03 +00:00
Begin work on message retention
- Refactor datastore such that we have a FileDataStore that implements the DataStore interface. - Add in missing SMTP configuration options: max recips, max idle, max message size - Add retention options to config
This commit is contained in:
@@ -294,8 +294,8 @@ func (ss *Session) dataHandler() {
|
||||
msgSize := 0
|
||||
|
||||
// Get a Mailbox and a new Message for each recipient
|
||||
mailboxes := make([]*Mailbox, ss.recipients.Len())
|
||||
messages := make([]*Message, ss.recipients.Len())
|
||||
mailboxes := make([]Mailbox, ss.recipients.Len())
|
||||
messages := make([]Message, ss.recipients.Len())
|
||||
i := 0
|
||||
for e := ss.recipients.Front(); e != nil; e = e.Next() {
|
||||
recip := e.Value.(string)
|
||||
|
||||
Reference in New Issue
Block a user