Closed Bug 178370 Opened 22 years ago Closed 20 years ago

global param for whether or not to send mail

Categories

(Bugzilla :: Email Notifications, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: myk, Assigned: shane.h.w.travis)

References

Details

Attachments

(1 file, 1 obsolete file)

There should be a global preference for whether or not to send mail, and no mail
should be sent by a Bugzilla script for any reason if the pref is turned off. 
This is particularly useful for test installations using real data where you
don't want real users getting fake emails when you make fake changes to the test
data.
I'd like there to be some way from the admin interface to set the new user
defaults for this.

For example, on landfill, I'd have all new users default to no mail, and provide
instructions on the landfill front page for users to turn their mail pref on if
they want to see what the email looks like.
Depends on: 84876
Depends on: bz-smtp
No longer depends on: 84876
Whiteboard: [blocker will fix]
*** Bug 275633 has been marked as a duplicate of this bug. ***
This is trivial. We don't need to wait for SMTP in order to be able to implement
this param. We only need to wait until the major work being done to editparams
is complete.
Blocks: 84876
Severity: normal → enhancement
Depends on: 46296
No longer depends on: bz-smtp
OS: Linux → All
Hardware: PC → All
Summary: global pref for whether or not to send mail → global param for whether or not to send mail
Whiteboard: [blocker will fix]
Depends on: 59351
Max; why do we even need to wait for that? Yes, this adds another parameter, 
but it seems to me that it neither blocks nor is blocked by the work being done 
on bug 46296. They are simply working on the same section of code (which 
happens fairly frequently around here....)
OK. If the patches don't conflict, then go ahead! :-) Take the bug, by the way,
if you want to do it.

This should be fairly simple now that bug 59351 has checked-in.
No longer depends on: 46296
(In reply to comment #4)
> Max; why do we even need to wait for that?

In theory, the reason it was blocking is because the editparams page is
currently a UI nightmare, and every param we add just makes it worse.  However,
I'm perfectly willing to let params get added now (on the trunk only) at will,
since I'm reasonably sure the editparams rewrite will be done before 2.22, and
I'm happy to deal with param conflicts while working on that (i.e. I can just
move them into the new system before it lands)
I keep needing this, so I'll take this bug.
Assignee: preed → travis
Attached patch Code patch for tip (obsolete) — Splinter Review
Huge thanks to Max for making this one possible.
Attachment #175832 - Flags: review?
Status: NEW → ASSIGNED
Target Milestone: --- → Bugzilla 2.20
Flags: documentation?
Bah, missed the obvious way to use this in BugMail.pm -- thanks Colin.
Attachment #175832 - Attachment is obsolete: true
Attachment #175833 - Flags: review?
Attachment #175832 - Flags: review?
Comment on attachment 175833 [details] [diff] [review]
Code patch for tip, take 2

I like this patch. r=LpSolit
Attachment #175833 - Flags: review? → review+
Flags: approval?
Flags: approval? → approval+
FWIW, this isn't quite as useful as setting the maildeliverymethod to "testfile."
Checking in defparams.pl;
/cvsroot/mozilla/webtools/bugzilla/defparams.pl,v  <--  defparams.pl
new revision: 1.150; previous revision: 1.149
done
Checking in Bugzilla/BugMail.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/BugMail.pm,v  <--  BugMail.pm
new revision: 1.35; previous revision: 1.34
done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
It seems to me that the extra param problem could have been easily avoided by
adding a "none" option to the maildeliverymethod param.
Jake, I completely agree. I was unaware of this parameter when I made my patch, 
and Max's comment never twigged me to the idea that I could just add 'none' to 
the existing parameter.

I'm opening a new patch to address the issue and merge the two into one.
Blocks: 284629
This parameter didn't live long enough to be in the documentation. It has been replaced by a new parameter, see bug 284629.
Flags: documentation? → documentation-
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: