Closed Bug 455430 Opened 16 years ago Closed 16 years ago

Add an X-Bugzilla-URL header to identify what install this email comes from

Categories

(Bugzilla :: Email Notifications, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.4

People

(Reporter: mkanat, Assigned: mkanat)

Details

Attachments

(1 file, 1 obsolete file)

Right now, when you have multiple installations on the same machine that all send with the same "From" (like we have on landfill), you can't tell very easily what installation emails come from (without checking the Message-ID and In-Reply-To header both, and that might not work for all emails). We should have an X-Bugzilla-URL header that contains the full urlbase for the Bugzilla installation.
Attached patch v1 (obsolete) — Splinter Review
I remove the "https?://" from the front, because some of these emails can be sent when the user isn't logged in, and then correct_urlbase() isn't always going to return the same thing, and we want this to always be exactly the same so that you can filter *all* emails on it.
Assignee: email-notifications → mkanat
Status: NEW → ASSIGNED
Attachment #338774 - Flags: review?(bugzilla)
Oh, hmm, maybe we should just add it inside of Bugzilla::Mailer? That way we'd only have to do it in one place. That seems easiest.
As some sites' admin, I'd prefer to be able to fully customize bug mail header. Some site might hope to add such header not by X-Bugzilla-URL but List-Id or something.
Attached patch v2Splinter Review
This does it in Bugzilla::Mailer--much more reliable.
Attachment #338774 - Attachment is obsolete: true
Attachment #338775 - Flags: review?(bugzilla)
Attachment #338774 - Flags: review?(bugzilla)
Attachment #338775 - Flags: review?(bugzilla) → review?(bbaetz)
Attachment #338775 - Flags: review?(bbaetz) → review+
Comment on attachment 338775 [details] [diff] [review] v2 r=bbaetz. This is for filtering not viewing, so even if the http URL isn't reachable it doesn't really matter
(In reply to comment #3) > As some sites' admin, I'd prefer to be able to fully customize bug mail header. > Some site might hope to add such header not by X-Bugzilla-URL but List-Id or > something. As the author of the Bugzilla supybot plugin, I'd really prefer that all installations use the same header. :-) However, if you wanted to customize this, you could still do it by editing the code here.
Checking in Bugzilla/Mailer.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Mailer.pm,v <-- Mailer.pm new revision: 1.22; previous revision: 1.21 done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: approval+
Resolution: --- → FIXED
Target Milestone: Bugzilla 4.0 → Bugzilla 3.4
(In reply to comment #6) > > As some sites' admin, I'd prefer to be able to fully customize bug mail header. > > Some site might hope to add such header not by X-Bugzilla-URL but List-Id or > > something. > > As the author of the Bugzilla supybot plugin, I'd really prefer that all > installations use the same header. :-) On that point, it should be at Bugzilla::Mailer. :-)
Added to the release notes for Bugzilla 3.4 in bug 494037.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: