Commit be610ad9 authored by dmose%mozilla.org's avatar dmose%mozilla.org

changes from jake@acutex.net to make it possible to toggle the default value of…

changes from jake@acutex.net to make it possible to toggle the default value of newemailtech for new profiles, this is set by default to be turned on (the old default was off) ; r=dmose@mozilla.org. changes from me to make newemailtech the default in all new installations, and update the verbiage in various spots to make it clear that newemailtech is now considered the one true way and the old tech will be going away. r=endico@mozilla.org,cyeh@bluemartini.com
parent 2f1d13b1
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
# Dawn Endico <endico@mozilla.org> # Dawn Endico <endico@mozilla.org>
# Dan Mosedale <dmose@mozilla.org> # Dan Mosedale <dmose@mozilla.org>
# Joe Robins <jmrobins@tgix.com> # Joe Robins <jmrobins@tgix.com>
# Jake <jake@acutex.net>
#
# This file defines all the parameters that we have a GUI to edit within # This file defines all the parameters that we have a GUI to edit within
# Bugzilla. # Bugzilla.
...@@ -390,13 +392,20 @@ Subject: [Bug %bugid%] %neworchanged% - %summary% ...@@ -390,13 +392,20 @@ Subject: [Bug %bugid%] %neworchanged% - %summary%
%diffs%"); %diffs%");
DefParam("newemailtech", DefParam("newemailtech",
q{There is now experimental code in Bugzilla to do the email diffs in a q{The way that email diffs are constructed by Bugzilla. You can revert to
new and exciting way. But this stuff is not very cooked yet. So, right the old technology by turning this off, but this is not advised, as the old
now, to use it, the maintainer has to turn on this checkbox, and each user email tech will probably disappear in the next version of Bugzilla. Some
has to then turn on the "New email tech" preference.}, features (watches, server side mail filtering) depend on newemailtech being
set to on.},
"b", "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", DefParam("newchangedmail",
q{The same as 'changedmail', but used for the newemailtech stuff.}, q{The same as 'changedmail', but used for the newemailtech stuff.},
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
# #
# Contributor(s): Terry Weissman <terry@mozilla.org> # Contributor(s): Terry Weissman <terry@mozilla.org>
# Dan Mosedale <dmose@mozilla.org> # Dan Mosedale <dmose@mozilla.org>
# Jake <jake@acutex.net>
# Contains some global variables and routines used throughout bugzilla. # Contains some global variables and routines used throughout bugzilla.
...@@ -582,6 +583,8 @@ sub InsertNewUser { ...@@ -582,6 +583,8 @@ sub InsertNewUser {
for (my $i=0 ; $i<8 ; $i++) { for (my $i=0 ; $i<8 ; $i++) {
$password .= substr("abcdefghijklmnopqrstuvwxyz", int(rand(26)), 1); $password .= substr("abcdefghijklmnopqrstuvwxyz", int(rand(26)), 1);
} }
my $usenewemailtech = Param('newemailtech') & Param('newemailtechdefault');
SendSQL("select bit, userregexp from groups where userregexp != ''"); SendSQL("select bit, userregexp from groups where userregexp != ''");
my $groupset = "0"; my $groupset = "0";
while (MoreSQLData()) { while (MoreSQLData()) {
...@@ -599,7 +602,7 @@ sub InsertNewUser { ...@@ -599,7 +602,7 @@ sub InsertNewUser {
$username = SqlQuote($username); $username = SqlQuote($username);
$realname = SqlQuote($realname); $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; return $password;
} }
......
...@@ -127,15 +127,15 @@ On which of these bugs would you like email notification of changes? ...@@ -127,15 +127,15 @@ On which of these bugs would you like email notification of changes?
my $checkedpart = $newemailtech ? "CHECKED" : ""; my $checkedpart = $newemailtech ? "CHECKED" : "";
print qq{ print qq{
<TR><TD COLSPAN="2"><HR></TD></TR> <TR><TD COLSPAN="2"><HR></TD></TR>
<TR><TD COLSPAN="2"><FONT COLOR="red">New!</FONT> <TR><TD COLSPAN="2"><FONT COLOR="red">Updated!</FONT>
Bugzilla has a new email Bugzilla's new standard email notification scheme allows for the use of
notification scheme. It is <b>experimental and bleeding edge</b> and will features such as watching other users and selecting which bug changes you get
hopefully evolve into a brave new happy world where all the spam and ugliness mail about. You can revert to the old notification scheme by unchecking this
of the old notifications will go away. If you wish to sign up for this (and box, but this isn't recommended, because the old scheme is no longer
risk any bugs), check here. supported and will be going away in an upcoming version of Bugzilla.
</TD></TR> </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}); qq{<INPUT TYPE="checkbox" NAME="newemailtech" $checkedpart>New email tech});
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment