The only user was proxmox-notify which now uses its own copies of these functions.
Also added #[allow(deprecated)] to the test case cause we don't want any deprecation warnings when running the test. Signed-off-by: Lukas Wagner <l.wag...@proxmox.com> --- proxmox-sys/src/email.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxmox-sys/src/email.rs b/proxmox-sys/src/email.rs index 85d171d7..eb8fd10a 100644 --- a/proxmox-sys/src/email.rs +++ b/proxmox-sys/src/email.rs @@ -10,6 +10,7 @@ use anyhow::{bail, format_err, Error}; /// Includes the header `Auto-Submitted: auto-generated`, so that auto-replies /// (i.e. OOO replies) won't trigger. /// ``sendmail`` is used for sending the mail. +#[deprecated(note="Use proxmox-notify's abstractions instead")] pub fn sendmail( mailto: &[&str], subject: &str, @@ -114,6 +115,7 @@ pub fn sendmail( /// /// ``sendmail`` is used for sending the mail, thus `message` must be /// compatible with that (the message is piped into stdin unmodified). +#[deprecated(note="Use proxmox-notify's abstractions instead")] pub fn forward( mailto: &[&str], mailfrom: &str, @@ -162,6 +164,7 @@ pub fn forward( #[cfg(test)] mod test { + #![allow(deprecated)] use crate::email::sendmail; #[test] -- 2.39.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel