Commit b539673d authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 305523: Email preference for "CC changed" should be disabled by default for…

Bug 305523: Email preference for "CC changed" should be disabled by default for new users - Patch by Gervase Markham <gerv@mozilla.org> r=wicked a=justdave
parent b173be41
...@@ -1170,6 +1170,13 @@ sub insert_new_user { ...@@ -1170,6 +1170,13 @@ sub insert_new_user {
foreach my $rel (RELATIONSHIPS) { foreach my $rel (RELATIONSHIPS) {
foreach my $event (POS_EVENTS, NEG_EVENTS) { foreach my $event (POS_EVENTS, NEG_EVENTS) {
# These "exceptions" define the default email preferences.
#
# We enable mail unless the change was made by the user, or it's
# just a CC list addition and the user is not the reporter.
next if ($event == EVT_CHANGED_BY_ME);
next if (($event == EVT_CC) && ($rel != REL_REPORTER));
$dbh->do("INSERT INTO email_setting " . $dbh->do("INSERT INTO email_setting " .
"(user_id, relationship, event) " . "(user_id, relationship, event) " .
"VALUES ($userid, $rel, $event)"); "VALUES ($userid, $rel, $event)");
......
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