public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox] sys: email: move Auto-Submitted header up
@ 2023-11-29 14:15 Gabriel Goller
  2023-11-29 14:18 ` [pbs-devel] applied: " Wolfgang Bumiller
  0 siblings, 1 reply; 2+ messages in thread
From: Gabriel Goller @ 2023-11-29 14:15 UTC (permalink / raw)
  To: pbs-devel

Move the Auto-Submitted header out of the multipart section.

Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
---
 proxmox-sys/src/email.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/proxmox-sys/src/email.rs b/proxmox-sys/src/email.rs
index c94f634..be92f30 100644
--- a/proxmox-sys/src/email.rs
+++ b/proxmox-sys/src/email.rs
@@ -66,12 +66,13 @@ pub fn sendmail(
     let localtime = proxmox_time::localtime(now)?;
     let rfc2822_date = proxmox_time::strftime("%a, %d %b %Y %T %z", &localtime)?;
     let _ = writeln!(body, "Date: {}", rfc2822_date);
+    body.push_str("Auto-Submitted: auto-generated;\n");
+
     if is_multipart {
         body.push('\n');
         body.push_str("This is a multi-part message in MIME format.\n");
         let _ = write!(body, "\n--{}\n", boundary);
     }
-    body.push_str("Auto-Submitted: auto-generated;\n");
     if let Some(text) = text {
         body.push_str("Content-Type: text/plain;\n");
         body.push_str("\tcharset=\"UTF-8\"\n");
-- 
2.39.2





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pbs-devel] applied: [PATCH proxmox] sys: email: move Auto-Submitted header up
  2023-11-29 14:15 [pbs-devel] [PATCH proxmox] sys: email: move Auto-Submitted header up Gabriel Goller
@ 2023-11-29 14:18 ` Wolfgang Bumiller
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Bumiller @ 2023-11-29 14:18 UTC (permalink / raw)
  To: Gabriel Goller; +Cc: pbs-devel

applied, thanks




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-29 14:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-29 14:15 [pbs-devel] [PATCH proxmox] sys: email: move Auto-Submitted header up Gabriel Goller
2023-11-29 14:18 ` [pbs-devel] applied: " Wolfgang Bumiller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal