himalaya 0.7.0

Command-line interface for email management.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::THEME;
use anyhow::Result;
use dialoguer::Input;
use himalaya_lib::{EmailSender, SendmailConfig};

pub(crate) fn configure() -> Result<EmailSender> {
    Ok(EmailSender::Sendmail(SendmailConfig {
        cmd: Input::with_theme(&*THEME)
            .with_prompt("Enter an external command to send a mail: ")
            .default("/usr/bin/msmtp".to_owned())
            .interact()?,
    }))
}