mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-17 05:07:55 +08:00
cac8280c8c
last fixes before merge
18 lines
485 B
Rust
18 lines
485 B
Rust
use anyhow::Result;
|
|
use dialoguer::Input;
|
|
use pimalaya_email::sender::{SenderConfig, SendmailConfig};
|
|
|
|
use crate::config::wizard::THEME;
|
|
|
|
pub(crate) fn configure() -> Result<SenderConfig> {
|
|
let mut config = SendmailConfig::default();
|
|
|
|
config.cmd = Input::with_theme(&*THEME)
|
|
.with_prompt("Sendmail-compatible shell command to send emails")
|
|
.default(String::from("/usr/bin/msmtp"))
|
|
.interact()?
|
|
.into();
|
|
|
|
Ok(SenderConfig::Sendmail(config))
|
|
}
|