public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox] fix #4162: sys: added `auto-submitted` header to email body
@ 2023-08-28  8:44 Gabriel Goller
  2023-09-07 15:42 ` Thomas Lamprecht
  0 siblings, 1 reply; 3+ messages in thread
From: Gabriel Goller @ 2023-08-28  8:44 UTC (permalink / raw)
  To: pbs-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>
---
 proxmox-sys/src/email.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/proxmox-sys/src/email.rs b/proxmox-sys/src/email.rs
index da910d4..9f53718 100644
--- a/proxmox-sys/src/email.rs
+++ b/proxmox-sys/src/email.rs
@@ -81,6 +81,7 @@ pub fn sendmail(
     }
     if let Some(html) = html {
         body.push_str("Content-Type: text/html;\n");
+        body.push_str("Auto-Submitted: auto-generated;\n");
         body.push_str("\tcharset=\"UTF-8\"\n");
         body.push_str("Content-Transfer-Encoding: 8bit\n");
         body.push('\n');
-- 
2.39.2





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

* Re: [pbs-devel] [PATCH proxmox] fix #4162: sys: added `auto-submitted` header to email body
  2023-08-28  8:44 [pbs-devel] [PATCH proxmox] fix #4162: sys: added `auto-submitted` header to email body Gabriel Goller
@ 2023-09-07 15:42 ` Thomas Lamprecht
  2023-09-08 13:07   ` Gabriel Goller
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Lamprecht @ 2023-09-07 15:42 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion, Gabriel Goller

On 28/08/2023 10:44, Gabriel Goller wrote:
> `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>
> ---
>  proxmox-sys/src/email.rs | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/proxmox-sys/src/email.rs b/proxmox-sys/src/email.rs
> index da910d4..9f53718 100644
> --- a/proxmox-sys/src/email.rs
> +++ b/proxmox-sys/src/email.rs
> @@ -81,6 +81,7 @@ pub fn sendmail(

Please add the fact that this is always for auto-generated mails to the
doc comment, so that anybody that wants to use this for something where
a human actually writes/sends the mail is aware of this behavior.

>      }
>      if let Some(html) = html {

why only add this to mails that include HTML, but not pure plain text ones?
Didn't see anything in the RFC that would indicate it should be done this
way, or did I overlook that part? 

>          body.push_str("Content-Type: text/html;\n");
> +        body.push_str("Auto-Submitted: auto-generated;\n");
>          body.push_str("\tcharset=\"UTF-8\"\n");
>          body.push_str("Content-Transfer-Encoding: 8bit\n");
>          body.push('\n');





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

* Re: [pbs-devel] [PATCH proxmox] fix #4162: sys: added `auto-submitted` header to email body
  2023-09-07 15:42 ` Thomas Lamprecht
@ 2023-09-08 13:07   ` Gabriel Goller
  0 siblings, 0 replies; 3+ messages in thread
From: Gabriel Goller @ 2023-09-08 13:07 UTC (permalink / raw)
  To: Thomas Lamprecht, Proxmox Backup Server development discussion

Sent a new patch version.

On 9/7/23 17:42, Thomas Lamprecht wrote:
> On 28/08/2023 10:44, Gabriel Goller wrote:
>> `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>
>> ---
>>   proxmox-sys/src/email.rs | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/proxmox-sys/src/email.rs b/proxmox-sys/src/email.rs
>> index da910d4..9f53718 100644
>> --- a/proxmox-sys/src/email.rs
>> +++ b/proxmox-sys/src/email.rs
>> @@ -81,6 +81,7 @@ pub fn sendmail(
> Please add the fact that this is always for auto-generated mails to the
> doc comment, so that anybody that wants to use this for something where
> a human actually writes/sends the mail is aware of this behavior.
>
>>       }
>>       if let Some(html) = html {
> why only add this to mails that include HTML, but not pure plain text ones?
> Didn't see anything in the RFC that would indicate it should be done this
> way, or did I overlook that part?
>
>>           body.push_str("Content-Type: text/html;\n");
>> +        body.push_str("Auto-Submitted: auto-generated;\n");
>>           body.push_str("\tcharset=\"UTF-8\"\n");
>>           body.push_str("Content-Transfer-Encoding: 8bit\n");
>>           body.push('\n');




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

end of thread, other threads:[~2023-09-08 13:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-28  8:44 [pbs-devel] [PATCH proxmox] fix #4162: sys: added `auto-submitted` header to email body Gabriel Goller
2023-09-07 15:42 ` Thomas Lamprecht
2023-09-08 13:07   ` Gabriel Goller

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