22 lines
544 B
Go
22 lines
544 B
Go
|
// Copyright (c) 2025 H0llyW00dzZ All rights reserved.
|
||
|
//
|
||
|
// By accessing or using this software, you agree to be bound by the terms
|
||
|
// of the License Agreement, which you can find at LICENSE files.
|
||
|
|
||
|
package client
|
||
|
|
||
|
import "sync"
|
||
|
|
||
|
// MultiUserIMAP manages multiple IMAP clients for different users
|
||
|
type MultiUserIMAP struct {
|
||
|
clients map[string]*IMAPClient
|
||
|
mu sync.Mutex
|
||
|
}
|
||
|
|
||
|
// NewMultiUserIMAP initializes a new MultiUserIMAP
|
||
|
func NewMultiUserIMAP() *MultiUserIMAP {
|
||
|
return &MultiUserIMAP{
|
||
|
clients: make(map[string]*IMAPClient),
|
||
|
}
|
||
|
}
|