]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
changes from jake@acutex.net to make it possible to toggle the default value of newem...
authordmose%mozilla.org <>
Sat, 23 Dec 2000 07:01:29 +0000 (07:01 +0000)
committerdmose%mozilla.org <>
Sat, 23 Dec 2000 07:01:29 +0000 (07:01 +0000)
defparams.pl
globals.pl
userprefs.cgi

index cc47f4eb5e173815b80da7d45d54bf6842ef8583..d182fd56205923f2be8306409e92432588f19368 100644 (file)
@@ -21,6 +21,8 @@
 #                 Dawn Endico <endico@mozilla.org>
 #                 Dan Mosedale <dmose@mozilla.org>
 #                 Joe Robins <jmrobins@tgix.com>
+#                 Jake <jake@acutex.net>
+#
 
 # This file defines all the parameters that we have a GUI to edit within
 # Bugzilla.
@@ -390,13 +392,20 @@ Subject: [Bug %bugid%] %neworchanged% - %summary%
 %diffs%");
 
 DefParam("newemailtech",
-q{There is now experimental code in Bugzilla to do the email diffs in a 
-new and exciting way.  But this stuff is not very cooked yet.  So, right
-now, to use it, the maintainer has to turn on this checkbox, and each user
-has to then turn on the "New email tech" preference.},
+q{The way that email diffs are constructed by Bugzilla.  You can revert to
+the old technology by turning this off, but this is not advised, as the old 
+email tech will probably disappear in the next version of Bugzilla.  Some
+features (watches, server side mail filtering) depend on newemailtech being
+set to on.},
     "b",
-    0);
+    1);
 
+DefParam("newemailtechdefault",
+q{Make "newemailtech" the default for all new accounts created.  This will
+not change any existing accounts nor will it remove a users ability to go
+back to the oldmail system (requires "newemailtech" to be on as well).},
+    "b",
+    1);
 
 DefParam("newchangedmail",
 q{The same as 'changedmail', but used for the newemailtech stuff.},
index 8cce0c78fb4fe6122109a3f0c846e49e68b5dd52..34f6b3cf5589c100bc503bc421275fbfd48cf2c6 100644 (file)
@@ -19,6 +19,7 @@
 #
 # Contributor(s): Terry Weissman <terry@mozilla.org>
 #                 Dan Mosedale <dmose@mozilla.org>
+#                 Jake <jake@acutex.net>
 
 # Contains some global variables and routines used throughout bugzilla.
 
@@ -582,6 +583,8 @@ sub InsertNewUser {
     for (my $i=0 ; $i<8 ; $i++) {
         $password .= substr("abcdefghijklmnopqrstuvwxyz", int(rand(26)), 1);
     }
+    my $usenewemailtech = Param('newemailtech') & Param('newemailtechdefault');
+
     SendSQL("select bit, userregexp from groups where userregexp != ''");
     my $groupset = "0";
     while (MoreSQLData()) {
@@ -599,7 +602,7 @@ sub InsertNewUser {
             
     $username = SqlQuote($username);
     $realname = SqlQuote($realname);
-    SendSQL("insert into profiles (login_name, realname, password, cryptpassword, groupset) values ($username, $realname, '$password', encrypt('$password'), $groupset)");
+    SendSQL("insert into profiles (login_name, realname, password, cryptpassword, groupset, newemailtech) values ($username, $realname, '$password', encrypt('$password'), $groupset, $usenewemailtech)");
     return $password;
 }
 
index c6362a143cb2256899c6ce128f90bd66468d5308..d2b5e0db166070b10393102fcfbbf99d6cada8d8 100755 (executable)
@@ -127,15 +127,15 @@ On which of these bugs would you like email notification of changes?
         my $checkedpart = $newemailtech ? "CHECKED" : "";
         print qq{
 <TR><TD COLSPAN="2"><HR></TD></TR>
-<TR><TD COLSPAN="2"><FONT COLOR="red">New!</FONT>
-Bugzilla has a new email 
-notification scheme.  It is <b>experimental and bleeding edge</b> and will 
-hopefully evolve into a brave new happy world where all the spam and ugliness
-of the old notifications will go away.  If you wish to sign up for this (and 
-risk any bugs), check here.
+<TR><TD COLSPAN="2"><FONT COLOR="red">Updated!</FONT>
+Bugzilla's new standard email notification scheme allows for the use of 
+features such as watching other users and selecting which bug changes you get 
+mail about.  You can revert to the old notification scheme by unchecking this
+box, but this isn't recommended, because the old scheme is no longer
+supported and will be going away in an upcoming version of Bugzilla.
 </TD></TR>
 };
-        EmitEntry("Check here to sign up (and risk any bugs)",
+        EmitEntry("Uncheck here to revert",
                   qq{<INPUT TYPE="checkbox" NAME="newemailtech" $checkedpart>New email tech});
     }