feat(channels): wire up email channel (IMAP/SMTP) into config and registration

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Argenis 2026-02-15 10:58:30 -05:00 committed by GitHub
parent efe7ae53ce
commit ced4d70814
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 48 additions and 162 deletions

View file

@ -541,6 +541,7 @@ pub struct ChannelsConfig {
pub imessage: Option<IMessageConfig>,
pub matrix: Option<MatrixConfig>,
pub whatsapp: Option<WhatsAppConfig>,
pub email: Option<crate::channels::email_channel::EmailConfig>,
pub irc: Option<IrcConfig>,
}
@ -555,6 +556,7 @@ impl Default for ChannelsConfig {
imessage: None,
matrix: None,
whatsapp: None,
email: None,
irc: None,
}
}
@ -889,6 +891,7 @@ mod tests {
imessage: None,
matrix: None,
whatsapp: None,
email: None,
irc: None,
},
memory: MemoryConfig::default(),
@ -1102,6 +1105,7 @@ default_temperature = 0.7
allowed_users: vec!["@u:m".into()],
}),
whatsapp: None,
email: None,
irc: None,
};
let toml_str = toml::to_string_pretty(&c).unwrap();
@ -1259,6 +1263,7 @@ channel_id = "C123"
app_secret: None,
allowed_numbers: vec!["+1".into()],
}),
email: None,
irc: None,
};
let toml_str = toml::to_string_pretty(&c).unwrap();