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:
parent
efe7ae53ce
commit
ced4d70814
8 changed files with 48 additions and 162 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue