[pve-devel] [PATCH common] fix #4162: added `Auto-Submitted` header to email body

Gabriel Goller g.goller at proxmox.com
Mon Aug 28 10:51:34 CEST 2023


`Auto-Submitted` is defined in the rfc 5436 [1] and describes how
an automatic response (f.e. ooo replies, etc.) should behave on the
emails. When using `Auto-Submitted: auto-generated` (or any value
other than `none`) automatic replies won't be triggered.

[1]: https://www.rfc-editor.org/rfc/rfc3834.html

Signed-off-by: Gabriel Goller <g.goller at proxmox.com>
---
 src/PVE/Tools.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PVE/Tools.pm b/src/PVE/Tools.pm
index 9ffac12..5b5d72c 100644
--- a/src/PVE/Tools.pm
+++ b/src/PVE/Tools.pm
@@ -1603,6 +1603,7 @@ sub sendmail {
 
     if (defined($html)) {
 	print $mail "Content-Type: text/html;\n";
+	print $mail "Auto-Submitted: auto-generated;\n";
 	print $mail "\tcharset=\"UTF-8\"\n";
 	print $mail "Content-Transfer-Encoding: 8bit\n";
 	print $mail "\n";
-- 
2.39.2






More information about the pve-devel mailing list