~soywod/pimalaya

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] Make sendmail-cmd optional

Details
Message ID
<20230823073140.19651-2-hugo@whynothugo.nl>
DKIM signature
pass
Download raw message
Patch: +9 -1
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
---
 src/config/prelude.rs | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/config/prelude.rs b/src/config/prelude.rs
index cf9c443..adc192f 100644
--- a/src/config/prelude.rs
+++ b/src/config/prelude.rs
@@ -368,10 +368,18 @@ pub enum SmtpOAuth2ScopesDef {
#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
#[serde(remote = "SendmailConfig", rename_all = "kebab-case")]
pub struct SendmailConfigDef {
    #[serde(rename = "sendmail-cmd", with = "CmdDef")]
    #[serde(
        rename = "sendmail-cmd",
        with = "CmdDef",
        default = "sendmail_default_cmd"
    )]
    cmd: Cmd,
}

fn sendmail_default_cmd() -> Cmd {
    Cmd::from("/usr/sbin/sendmail")
}

/// Represents the email hooks. Useful for doing extra email
/// processing before or after sending it.
#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize, Deserialize)]
-- 
2.41.0
Reply to thread Export thread (mbox)