-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-Submitted and Precedence headers in automatically sent e-mails #16538
Comments
Sounds good 👍 Here is the related RFC: https://tools.ietf.org/html/rfc3834 and https://tools.ietf.org/html/rfc5436 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
AFAIUnderstand.... Based on https://swiftmailer.symfony.com/docs/headers.html#text-headers File lib/private/Mail/Mailer.php around line 191: $headers = $message->getSwiftMessage()->getHeaders(); And... That's it ! Or implementing the getHeaders() function in lib/private/Mail/Message.php Tested in my Nextcloud test instance, works like a charm ! Auto-Submitted header is added to the sent mails (Test e-mail from Admin pannel) GS. |
Thanks @slater0013! Would you be able to create a PR for this? That would be really great! :) |
Ok I ... tried something :) |
Great, thank you! :) |
Is your feature request related to a problem? Please describe.
Emails are often automatically sent by Nextcloud. eg : activity or sharing notifications. People with auto-reply configured on their mailboxes reply...
Describe the solution you'd like
Two additionnal headers can be added in automatically submited emails, as described in RFC.
Auto-Submitted and Precedence. RFC-compliant mail clients may not autoreply when those headers are present.
Thank you,
GS.
The text was updated successfully, but these errors were encountered: