From: Lukas Wagner <l.wagner@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH proxmox-perl-rs] notify context: fix 'default_sendmail_from' context method
Date: Mon, 2 Oct 2023 09:40:49 +0200 [thread overview]
Message-ID: <20231002074049.157507-1-l.wagner@proxmox.com> (raw)
The name of the configuration option in datacenter.cfg is `email_from`
and not `mail_from`.
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
---
Reported in our forum:
https://forum.proxmox.com/threads/mail-alerts-not-sent-with-datacenter-default.134305/
pve-rs/src/notify_context.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pve-rs/src/notify_context.rs b/pve-rs/src/notify_context.rs
index 48623fd..3cf3e18 100644
--- a/pve-rs/src/notify_context.rs
+++ b/pve-rs/src/notify_context.rs
@@ -58,7 +58,7 @@ impl Context for PVEContext {
fn default_sendmail_from(&self) -> String {
let content = attempt_file_read("/etc/pve/datacenter.cfg");
content
- .and_then(|content| lookup_datacenter_config_key(&content, "mail_from"))
+ .and_then(|content| lookup_datacenter_config_key(&content, "email_from"))
.unwrap_or_else(|| String::from("root"))
}
--
2.39.2
next reply other threads:[~2023-10-02 7:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-02 7:40 Lukas Wagner [this message]
2023-10-02 10:31 ` [pve-devel] applied: " Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231002074049.157507-1-l.wagner@proxmox.com \
--to=l.wagner@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox