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)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.4
People
(Reporter: mkanat, Assigned: mkanat)
Details
Attachments
(1 file, 1 obsolete file)
1.09 KB,
patch
|
bbaetz
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•16 years ago
|
||
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)
Assignee | ||
Comment 2•16 years ago
|
||
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.
Comment 3•16 years ago
|
||
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.
Assignee | ||
Comment 4•16 years ago
|
||
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)
Assignee | ||
Updated•16 years ago
|
Attachment #338775 -
Flags: review?(bugzilla) → review?(bbaetz)
Updated•16 years ago
|
Attachment #338775 -
Flags: review?(bbaetz) → review+
Comment 5•16 years ago
|
||
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
Assignee | ||
Comment 6•16 years ago
|
||
(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.
Assignee | ||
Comment 7•16 years ago
|
||
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
Comment 8•16 years ago
|
||
(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. :-)
Assignee | ||
Comment 9•16 years ago
|
||
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.
Description
•