Closed Bug 28458 Opened 25 years ago Closed 24 years ago

using new email system, "New" bugs do not have CC or QA contact

Categories

(Bugzilla :: Bugzilla-General, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED FIXED
Bugzilla 2.14

People

(Reporter: alecf, Assigned: jacob)

References

Details

Attachments

(2 files)

Just a minor nit... when an email notification for a new bug arrives (i.e. not a changed but bug a new one) the list of headers does not include the CC list or the QA contact. This would be useful information to have, and sometimes I wonder who else is on the CC I'm not in QA but I would imagine this would also make it difficult to know if you're getting this notification because you're the QA contact or because you're on the CC... I realize there are lots of headers already, but you could probably remove some of them because they are not even in the "Enter Bug" form, such as: keywords, Resolution, and status whiteboard. Those fields can only be accessed when you're changing an existing bug. By the way, I LOVE the new email notification system :)
tara@tequilarista.org is the new owner of Bugzilla and Bonsai. (For details, see my posting in netscape.public.mozilla.webtools, news://news.mozilla.org/38F5D90D.F40E8C1A%40geocast.com .)
Assignee: terry → tara
This is an easy fix, and something I've been noticing, too. It's annoying. Should this be a 2.12?
Adding default QA contact to all open Webtools/Bugzilla bugs lacking one. Sorry for the spam.
QA Contact: matty
New bugs also show status whiteboard, keywords, and resolution, even though those fields are always (?) empty.
Depends on: 71552
Target Milestone: --- → Bugzilla 2.16
Looking at the code in processmail it appears that the decision to show a field in the new bug notification is made by checking the value of fielddefs.mailhead (1 means show, 0 means don't). I could be wrong about that as I only looked at it for about 30 seconds, but If I'm right changeing which fields appear is a simple change to the db. Unfortunately, simple db changes are on hold until the oldmail is removed (because of the shadow directory regeneration in ./checksetup.pl).
since we decided oldemailtech is going away in 2.14 precisely for that reason, we can probably do this at the same time.
Target Milestone: Bugzilla 2.16 → Bugzilla 2.14
The previous patch changes the values of mailhead where they're defined in checksetup.pl for status_whiteboard (turns off), keywords (turns off), resolution, (turns off), and cc (turns on). These values are updated in the DB everytime checksetup.pl is run. It also adds a routine to doeditparams.pl to update the mailhead value for qa_contact based on the useqacontact param. To include qa_contact in the New: e-mails for a running system, either the useqacontact parm has to be turned off then back on or the following SQL statement should be run: UPDATE fielddefs SET mailhead = 1 WHERE name = 'qa_contact';
Assignee: tara → jake
Keywords: patch, review
Looking over the processmail code, my take on it is that except for a couple exceptions (like CC and dependencies, because they're handled differently) the mailhead values are used to determine whether processmail should report changes on them, too. So by clearing the mailhead values for status whiteboard and resolution, you are preventing processmail from ever reporting changes to these fields.
I just looked at the code again. What it seems to do is pull the mailhead value from the DB and put it into %defmailhead (line 90). It then passes the hash to NewProcessOnePerson (line 264). NewProcessOnePerson uses this hash to set the $head variable (line 644). Then the $isnew variable determines if $head or $difftext should be placed at the top of the e-mail (line 679). AKAICT, that's all mentions of 'mailhead' (or the variable it gets placed into/is used to determine which code to run). fgrep shows that 'mailhead' only appears in processmail and checksetup.pl. All line numbers are based on r1.63 of processmail
Why use   in the print statement?
Hmm... I'm sure there was a reason, but I don't remember it :)
Dave/Jake -- Patch is up on Landfill. Please play with it there and make sure you're in agreement on the implementation. It looks okay to me on cursory inspection, but I'd like Dave to make the final call.
ok, played on landfill, it does indeed have the fields in the changemail that are taken out of the mailhead list. So all is cool. r= justdave checked in.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Just realized that AddFDef in checksetup.pl will replace your fielddefs every time you run it. This effectively nullifies any change made in editparams.pl if you update, which completely eradicates the QA Contact from showing up unless you turn QA Contacts off and back on every time you update...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Now that bug 85734 is landed, qa_contact can be turned on as a mailhead and if it's blank (which it will be if Param('useqacontact') is off) it won't be included in the message.
Attached patch bugfix v1Splinter Review
r= justdave checked in.
Status: REOPENED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → FIXED
Moving to Bugzilla product
Component: Bugzilla → Bugzilla-General
Product: Webtools → Bugzilla
Version: other → unspecified
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: