Skip to content
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

Adding the Auto-Submitted header for notification mails #1041

Merged
merged 1 commit into from Oct 18, 2023

Conversation

bennet0496
Copy link
Contributor

In PR nextcloud/server#35876, I added the possibility to directly set the Auto-Submitted mail header from OCP\Mail\Message. Reasons for the header are described in this PR and in an older issue nextcloud/server#16538 and PR nextcloud/server#27200. But the short of it is that it prevents OOO/vacaction auto-reponses on properly configured mail system, that other wise would go to the configured sender address from the NC instance.

This PR adds utilization of the method introduced in nextcloud/server#35876, however there also is a fallback way via getSwiftMessage() allowing backwards compatibility for older NC version.

lib/MailQueueHandler.php Outdated Show resolved Hide resolved
lib/MailQueueHandler.php Outdated Show resolved Hide resolved
uses method from nextcloud/server#35876

Signed-off-by: Bennet Becker <dev@bennet.cc>
@susnux susnux enabled auto-merge October 18, 2023 15:50
@susnux susnux merged commit 37c4668 into nextcloud:master Oct 18, 2023
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants