mirror of
https://github.com/soywod/himalaya.git
synced 2024-07-05 17:15:12 +00:00
make sendmail-cmd optional
Use the common /usr/sbin/sendmail the default. This is a common default hardcoded in many applications. Fixes: https://todo.sr.ht/~soywod/pimalaya/126
This commit is contained in:
parent
43c270bd44
commit
f61a1f6669
|
@ -368,10 +368,18 @@ pub enum SmtpOAuth2ScopesDef {
|
||||||
#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(remote = "SendmailConfig", rename_all = "kebab-case")]
|
#[serde(remote = "SendmailConfig", rename_all = "kebab-case")]
|
||||||
pub struct SendmailConfigDef {
|
pub struct SendmailConfigDef {
|
||||||
#[serde(rename = "sendmail-cmd", with = "CmdDef")]
|
#[serde(
|
||||||
|
rename = "sendmail-cmd",
|
||||||
|
with = "CmdDef",
|
||||||
|
default = "sendmail_default_cmd"
|
||||||
|
)]
|
||||||
cmd: Cmd,
|
cmd: Cmd,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn sendmail_default_cmd() -> Cmd {
|
||||||
|
Cmd::from("/usr/sbin/sendmail")
|
||||||
|
}
|
||||||
|
|
||||||
/// Represents the email hooks. Useful for doing extra email
|
/// Represents the email hooks. Useful for doing extra email
|
||||||
/// processing before or after sending it.
|
/// processing before or after sending it.
|
||||||
#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize, Deserialize)]
|
||||||
|
|
Loading…
Reference in a new issue