Add IMAP settings to configuration and enhance email processing logic
This commit is contained in:
parent
d326705b1d
commit
7698656c6e
4 changed files with 114 additions and 30 deletions
|
|
@ -19,13 +19,14 @@ type Config struct {
|
|||
}
|
||||
|
||||
type IMAPConfig struct {
|
||||
Server string `yaml:"server"`
|
||||
Port int `yaml:"port"`
|
||||
Username string `yaml:"username"`
|
||||
Password string `yaml:"password"`
|
||||
MailboxIn string `yaml:"mailbox_in"`
|
||||
DraftBox string `yaml:"draft_box"`
|
||||
UseTLS bool `yaml:"use_tls"`
|
||||
Server string `yaml:"server"`
|
||||
Port int `yaml:"port"`
|
||||
Username string `yaml:"username"`
|
||||
Password string `yaml:"password"`
|
||||
MailboxIn string `yaml:"mailbox_in"`
|
||||
DraftBox string `yaml:"draft_box"`
|
||||
ProcessedBox string `yaml:"processed_box"`
|
||||
UseTLS bool `yaml:"use_tls"`
|
||||
}
|
||||
|
||||
type AIConfig struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue