Skip to content

feat: setting to disable push notification for mailbox#418

Merged
s-aga-r merged 1 commit into
frappe:developfrom
s-aga-r:disable-push
Apr 10, 2026
Merged

feat: setting to disable push notification for mailbox#418
s-aga-r merged 1 commit into
frappe:developfrom
s-aga-r:disable-push

Conversation

@s-aga-r
Copy link
Copy Markdown
Collaborator

@s-aga-r s-aga-r commented Apr 10, 2026

By default, push notifications are now enabled for all subscribed mailboxes (except drafts and junk). Set the disable_push_notification to 1 to disable notifications for the specific mailbox.

image

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds per-mailbox control over push notifications so users can disable notifications for specific subscribed mailboxes.

Changes:

  • Adds disable_push_notification checkbox to the Mailbox Settings DocType.
  • Updates push-notification candidate selection to include all subscribed mailboxes (and exclude disabled ones).
  • Introduces MailboxService.is_subscribed() helper to check mailbox subscription status.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
mail/jmap/services/mail/mailbox.py Adds an is_subscribed() helper used by notification logic.
mail/client/doctype/mailbox_settings/mailbox_settings.json Adds a new checkbox field to disable push notifications per mailbox.
mail/client/doctype/mail_message/mail_message.py Updates notification eligibility and mailbox reload publishing based on subscription + new disable setting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread mail/client/doctype/mail_message/mail_message.py Outdated
Comment thread mail/client/doctype/mail_message/mail_message.py
Comment thread mail/client/doctype/mail_message/mail_message.py Outdated
Comment thread mail/client/doctype/mail_message/mail_message.py
Comment thread mail/jmap/services/mail/mailbox.py Outdated
Comment thread mail/client/doctype/mailbox_settings/mailbox_settings.json Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread mail/client/doctype/mail_message/mail_message.py Outdated
Comment thread mail/client/doctype/mailbox_settings/mailbox_settings.json Outdated
@s-aga-r s-aga-r marked this pull request as ready for review April 10, 2026 04:37
@s-aga-r s-aga-r requested a review from krantheman as a code owner April 10, 2026 04:37
@s-aga-r s-aga-r merged commit f3c9872 into frappe:develop Apr 10, 2026
3 checks passed
@s-aga-r
Copy link
Copy Markdown
Collaborator Author

s-aga-r commented Apr 10, 2026

8078316

@s-aga-r s-aga-r deleted the disable-push branch April 14, 2026 14:15
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.

2 participants