Skip to content

[stable34] fix(MailQueueHandler): check enable_email toggle before sending queued emails#2612

Merged
miaulalala merged 1 commit into
stable34from
backport/2563/stable34
May 20, 2026
Merged

[stable34] fix(MailQueueHandler): check enable_email toggle before sending queued emails#2612
miaulalala merged 1 commit into
stable34from
backport/2563/stable34

Conversation

@backportbot
Copy link
Copy Markdown

@backportbot backportbot Bot commented May 20, 2026

Backport of PR #2563

…d emails

The admin Enable notification emails toggle was only checked when queuing
new emails. The sendEmails() background job had no knowledge of it and
would send all queued entries regardless.

Adds an early-return guard using IAppConfig::getValueString() at the top
of sendEmails(), consistent with the checks in UserSettings. The queue is
left intact so pending notifications can be delivered if the admin
re-enables emails.

AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Anna Larch <anna@nextcloud.com>
@cypress
Copy link
Copy Markdown

cypress Bot commented May 20, 2026

Activity    Run #3815

Run Properties:  status check failed Failed #3815  •  git commit c36aff8831: [stable34] fix(MailQueueHandler): check enable_email toggle before sending queue...
Project Activity
Branch Review backport/2563/stable34
Run status status check failed Failed #3815
Run duration 02m 24s
Commit git commit c36aff8831: [stable34] fix(MailQueueHandler): check enable_email toggle before sending queue...
Committer backportbot[bot]
View all properties for this run ↗︎

Test results
Tests that failed  Failures 1
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 1
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 8
View all changes introduced in this branch ↗︎

Tests for review

Failed  cypress/e2e/settings.cy.ts • 1 failed test • Run E2E

View Output

Test Artifacts
Check that user's settings survive a reload > Form survive a reload Test Replay Screenshots

@miaulalala miaulalala closed this May 20, 2026
@miaulalala miaulalala reopened this May 20, 2026
@miaulalala miaulalala merged commit 793435a into stable34 May 20, 2026
53 of 56 checks passed
@miaulalala miaulalala deleted the backport/2563/stable34 branch May 20, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant