-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Adding option to set Auto-Submitted email header #35876
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
Conversation
and implementation in OC\Mail\Message Signed-off-by: Bennet Becker <[email protected]>
Signed-off-by: Bennet Becker <[email protected]>
Signed-off-by: Bennet Becker <[email protected]>
Signed-off-by: Bennet Becker <[email protected]>
header Signed-off-by: Bennet Becker <[email protected]>
Co-authored-by: Christoph Wurst <[email protected]> Signed-off-by: Bennet B <[email protected]>
Signed-off-by: Bennet Becker <[email protected]>
21cd8d3 to
411467a
Compare
(was changed by autoloaderchecker.sh or composer?) Signed-off-by: Bennet Becker <[email protected]>
tcitworld
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert unneeded autoloader changes.
…e class" This reverts commit 77569ba. Signed-off-by: Bennet Becker <[email protected]>
|
which of the autoloader changes are ones that need to stay? If any, probably only |
Signed-off-by: Bennet Becker <[email protected]>
uses method from nextcloud/server#35876 if it exists, falling back setting it via the swift message Signed-off-by: Bennet Becker <[email protected]>
and then commit it. |
header name to constants Signed-off-by: Bennet Becker <[email protected]>
Signed-off-by: Bennet Becker <[email protected]>
apps/dav/lib/CalDAV/Reminder/NotificationProvider/EmailProvider.php
Outdated
Show resolved
Hide resolved
Signed-off-by: Bennet Becker <[email protected]>
Signed-off-by: Bennet Becker <[email protected]>
|
Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 |
|
Good stuff @bennet0496 |
|
thank you @nickvergessen it's always cool if I can help and contribute, even with the limited amount of coding I usually do 😄 |
|
hello @bennet0496 |
|
Short docs were added in #34692 (comment) |
|
All our emailing has no docs. |
uses method from nextcloud/server#35876 if it exists, falling back setting it via the swift message Signed-off-by: Bennet Becker <[email protected]>
uses method from nextcloud/server#35876 if it exists, falling back setting it via the swift message Signed-off-by: Bennet Becker <[email protected]>
uses method from nextcloud/server#35876 Signed-off-by: Bennet Becker <[email protected]>
Related to issue #16538 and PR #27200
As previously discussed an proposed in the issue and PR, this PR add the option Auto-Submitted, which has the main purpose of stopping properly configured mail server from sending OOO-Auto-Replys in response to fully automatic Nextcloud notifications. However as @nickvergessen mentioned in #27200 (comment) it might not be ideal to hard code the header for any email sent by Nextcloud, for this reason I added the method
setAutoSubmitted(string $value)toOC\Mail\Message, which allows apps to dynamically set this header if it is deemed appropriate. The current default is to not set the Header which is equivalent toAuto-Submitted: no. The set of valid values is available withOCP\Mail\AutoSubmittedValue.Additionally I set this Auto-Submitted value for new user welcome mail (
NewUserMailHelperinapps/settings) and CalDAV notifications (OCA\DAV\CalDAV\Reminder\NotificationProviderinapps/dav)The image show the header being adding to the new user mail, but not the test mail. I was not able to trigger a DAV notification in my 5min test installation until now, but as the code is the same I expect similar results.

Unit tests for the new methods are added as well.