]> git.proxmox.com Git - proxmox.git/blobdiff - proxmox-notify/src/context.rs
notify: sendmail: query default author/mailfrom from context
[proxmox.git] / proxmox-notify / src / context.rs
index c31a243bfa58ff753ab6b1f05648fbf19dc761dd..4643f98775900499eb0e34a96480ea582dd1cf2b 100644 (file)
@@ -3,6 +3,8 @@ use std::fmt::Debug;
 
 pub trait Context: Send + Sync + Debug {
     fn lookup_email_for_user(&self, user: &str) -> Option<String>;
+    fn default_sendmail_author(&self) -> String;
+    fn default_sendmail_from(&self) -> String;
 }
 
 static CONTEXT: OnceCell<&'static dyn Context> = OnceCell::new();