* [pve-devel] [PATCH common v2] fix #4162: added `Auto-Submitted` header to email body
@ 2023-09-19 7:35 Gabriel Goller
2023-11-06 17:40 ` [pve-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Gabriel Goller @ 2023-09-19 7:35 UTC (permalink / raw)
To: pve-devel
`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@proxmox.com>
---
Note: this is already merged in `proxmox_sys::mail::sendmail`,
which is used by pbs and pve. This is aimed at pmg, which
still uses the perl implementation and for keeping the email
behavior consistent through all products.
src/PVE/Tools.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/PVE/Tools.pm b/src/PVE/Tools.pm
index 569f0cd..c91e933 100644
--- a/src/PVE/Tools.pm
+++ b/src/PVE/Tools.pm
@@ -1598,6 +1598,7 @@ sub sendmail {
if (defined($text)) {
print $mail "Content-Type: text/plain;\n";
+ print $mail "Auto-Submitted: auto-generated;\n";
print $mail "\tcharset=\"UTF-8\"\n";
print $mail "Content-Transfer-Encoding: 8bit\n";
print $mail "\n";
@@ -1613,6 +1614,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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pve-devel] applied: [PATCH common v2] fix #4162: added `Auto-Submitted` header to email body
2023-09-19 7:35 [pve-devel] [PATCH common v2] fix #4162: added `Auto-Submitted` header to email body Gabriel Goller
@ 2023-11-06 17:40 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2023-11-06 17:40 UTC (permalink / raw)
To: Proxmox VE development discussion, Gabriel Goller
Am 19/09/2023 um 09:35 schrieb Gabriel Goller:
> `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@proxmox.com>
> ---
>
> Note: this is already merged in `proxmox_sys::mail::sendmail`,
> which is used by pbs and pve. This is aimed at pmg, which
> still uses the perl implementation and for keeping the email
> behavior consistent through all products.
>
> src/PVE/Tools.pm | 2 ++
> 1 file changed, 2 insertions(+)
>
>
applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-11-06 17:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-19 7:35 [pve-devel] [PATCH common v2] fix #4162: added `Auto-Submitted` header to email body Gabriel Goller
2023-11-06 17:40 ` [pve-devel] applied: " Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox