18 lines
414 B
Go
18 lines
414 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
|
||
|
|
||
|
// NewIMAP creates a new IMAP client with the given configuration
|
||
|
func NewIMAP(config *Config) *IMAPClient {
|
||
|
if config == nil {
|
||
|
config = &Config{}
|
||
|
}
|
||
|
|
||
|
return &IMAPClient{
|
||
|
config: config,
|
||
|
}
|
||
|
}
|