From e2466aae1fda4c2ce67c517074fdc4369d68b848 Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" <> Date: Sat, 8 Jan 2005 04:56:01 +0000 Subject: Bug 108870: Bugzilla does not set email prefs for new user until user visits userprefs.cgi Patch: travis r=mkanat a=justdave Also includes fixes for Bug 109573: New bugzilla accounts should by default have 'CC field changes' turned off, and Bug 275599: flag request email prefs not behaving correctly --- Bugzilla/Constants.pm | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Constants.pm') diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index 1a9334f35..284506e15 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -25,7 +25,7 @@ # J. Paul Reed # Bradley Baetz # Christopher Aillon - +# Shane H. W. Travis package Bugzilla::Constants; use strict; @@ -51,6 +51,9 @@ use base qw(Exporter); LOGOUT_CURRENT LOGOUT_KEEP_CURRENT + DEFAULT_FLAG_EMAIL_SETTINGS + DEFAULT_EMAIL_SETTINGS + GRANT_DIRECT GRANT_DERIVED GRANT_REGEXP @@ -122,6 +125,72 @@ use constant contenttypes => "ics" => "text/calendar" , }; +use constant DEFAULT_FLAG_EMAIL_SETTINGS => + "~FlagRequestee~on" . + "~FlagRequester~on"; + +# By default, almost all bugmail is turned on, with the exception +# of CC list additions for anyone except the Assignee/Owner. +# If you want to customize the default settings for new users at +# your own site, ensure that each of the lines ends with either +# "~on" or just "~" (for off). + +use constant DEFAULT_EMAIL_SETTINGS => + "ExcludeSelf~on" . + + "~FlagRequestee~on" . + "~FlagRequester~on" . + + "~emailOwnerRemoveme~on" . + "~emailOwnerComments~on" . + "~emailOwnerAttachments~on" . + "~emailOwnerStatus~on" . + "~emailOwnerResolved~on" . + "~emailOwnerKeywords~on" . + "~emailOwnerCC~on" . + "~emailOwnerOther~on" . + "~emailOwnerUnconfirmed~on" . + + "~emailReporterRemoveme~on" . + "~emailReporterComments~on" . + "~emailReporterAttachments~on" . + "~emailReporterStatus~on" . + "~emailReporterResolved~on" . + "~emailReporterKeywords~on" . + "~emailReporterCC~" . + "~emailReporterOther~on" . + "~emailReporterUnconfirmed~on" . + + "~emailQAcontactRemoveme~on" . + "~emailQAcontactComments~on" . + "~emailQAcontactAttachments~on" . + "~emailQAcontactStatus~on" . + "~emailQAcontactResolved~on" . + "~emailQAcontactKeywords~on" . + "~emailQAcontactCC~" . + "~emailQAcontactOther~on" . + "~emailQAcontactUnconfirmed~on" . + + "~emailCClistRemoveme~on" . + "~emailCClistComments~on" . + "~emailCClistAttachments~on" . + "~emailCClistStatus~on" . + "~emailCClistResolved~on" . + "~emailCClistKeywords~on" . + "~emailCClistCC~" . + "~emailCClistOther~on" . + "~emailCClistUnconfirmed~on" . + + "~emailVoterRemoveme~on" . + "~emailVoterComments~on" . + "~emailVoterAttachments~on" . + "~emailVoterStatus~on" . + "~emailVoterResolved~on" . + "~emailVoterKeywords~on" . + "~emailVoterCC~" . + "~emailVoterOther~on" . + "~emailVoterUnconfirmed~on"; + use constant GRANT_DIRECT => 0; use constant GRANT_DERIVED => 1; use constant GRANT_REGEXP => 2; -- cgit v1.2.3-24-g4f1b