Skip to content

Bug 2097284 - Add a flag identifier to the subject line of emails where you are being requested for something such as needinfo, etc. - #2840

Merged
dklawren merged 8 commits into
mozilla:masterfrom
dklawren:2097284
Nov 26, 2026

Conversation

@dklawren

Copy link
Copy Markdown
Collaborator

No description provided.

…re you are being requested for something such as needinfo, etc.
@dklawren
dklawren requested review from Xzzz and cgsheeh and a balanced review from Copilot November 24, 2026 17:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Prepending flag text breaks bug-ID parsing in the Splinter and TagNewUsers hooks, removing attachment review links from affected notifications and potentially suppressing first-patch headers.

1 open issue
What changed in this PR

This PR makes recipient-specific flag requests and answers easier to identify in Bugzilla notification subjects.

Changes:

  • Prefixes subjects with the flag name and its requested, granted, denied, or cleared status.
  • Adds tests for requestee and requester subjects, while checking that flag-type CC recipients retain the standard subject.
File Description
template/​en/​default/​email/​bugmail-header.txt.tmpl Adds a subject prefix for the recipient’s first relevant flag event.
t/​bmo/​bugmail-flag-events.t Tests subject formatting for flag requests, answers, and CC recipients.

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

A bracketed flag name can make SecureMail select the wrong bug from the subject, potentially sending mail unencrypted for a bug that requires encryption.

1 open issue
1 resolved since last review

Review effort: Balanced

@dklawren
dklawren requested a balanced review from Copilot November 24, 2026 18:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified for the recipient-specific flag subject prefixes and related mail-extension updates.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@Xzzz Xzzz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

All is good for me, thanks Dave! :)

@dklawren
dklawren requested review from Xzzz and a balanced review from Copilot November 25, 2026 20:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Human assessment is needed because a non-ASCII flag name can trigger MIME encoding that bypasses Subject sanitization, exposing a confidential summary in an unencrypted header despite the message being marked secured.

No open issues 🎉

Review effort: Balanced

Comment thread Bugzilla/Install.pm Resolved
Comment thread t/bmo/bugmail-flag-events.t Resolved
@dklawren
dklawren merged commit dd64008 into mozilla:master Nov 26, 2026
13 of 14 checks passed
@dklawren
dklawren deleted the 2097284 branch November 26, 2026 04:32
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.

4 participants