mirror of
https://github.com/neilalexander/yggmail.git
synced 2026-04-18 08:06:28 +03:00
Queue messages for re-send
This commit is contained in:
@@ -11,6 +11,7 @@ type SQLite3Storage struct {
|
||||
*TableConfig
|
||||
*TableMailboxes
|
||||
*TableMails
|
||||
*TableQueue
|
||||
}
|
||||
|
||||
func NewSQLite3StorageStorage(filename string) (*SQLite3Storage, error) {
|
||||
@@ -31,5 +32,9 @@ func NewSQLite3StorageStorage(filename string) (*SQLite3Storage, error) {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("NewTableMails: %w", err)
|
||||
}
|
||||
s.TableQueue, err = NewTableQueue(db)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("NewTableQueue: %w", err)
|
||||
}
|
||||
return s, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user