Add IMAP settings to configuration and enhance email processing logic

This commit is contained in:
2025-03-01 15:27:17 +01:00
parent d326705b1d
commit 7698656c6e
4 changed files with 114 additions and 30 deletions

View File

@@ -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 {