[%# 1.0@bugzilla.org %] [%# The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of # the License at http://www.mozilla.org/MPL/ # # Software distributed under the License is distributed on an "AS # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or # implied. See the License for the specific language governing # rights and limitations under the License. # # The Original Code is the Bugzilla Bug Tracking System. # # The Initial Developer of the Original Code is Netscape Communications # Corporation. Portions created by Netscape are # Copyright (C) 1998 Netscape Communications Corporation. All # Rights Reserved. # # Contributor(s): Gervase Markham # Myk Melez # Shane H. W. Travis #%] [%# INTERFACE: # watchedusers: string. # Comma-separated list of email addresses this user watches. # watchers: array. # Array of users watching this user's account. # excludeself: boolean. # True if user is not receiving self-generated mail. # : Multiple hashes, one for each rolename (e.g. assignee; see # below), keyed by reasonname (e.g. comments; again, see # below). The value is a boolean - true if the user is # receiving mail for that reason when in that role. # Also references the 'supportwatchers' Param. #%] [% PROCESS global/variables.none.tmpl %] [% useqacontact = Param('useqacontact') %] [% usevotes = Param('usevotes') %]

If you don't like getting a notification for "trivial" changes to [% terms.bugs %], you can use the settings below to filter some or all notifications.


[% IF user.is_global_watcher %] [% END %]
Global options:
[% prefname = "email-$constants.REL_ANY-$constants.EVT_FLAG_REQUESTED" %]
[% prefname = "email-$constants.REL_ANY-$constants.EVT_REQUESTED_FLAG" %]
You are watching all [% terms.bugs %]. To be removed from this role, contact [% Param("maintainer") %].

Field/recipient specific options:

[% events = [ { id = constants.EVT_ADDED_REMOVED, description = "I'm added to or removed from this capacity" }, { id = constants.EVT_OPENED_CLOSED, description = "The $terms.bug is resolved or reopened" }, { id = constants.EVT_PROJ_MANAGEMENT, description = "The priority, status, severity, or milestone changes" }, { id = constants.EVT_COMMENT, description = "New comments are added" }, { id = constants.EVT_ATTACHMENT, description = "New attachments are added" }, { id = constants.EVT_ATTACHMENT_DATA, description = "Some attachment data changes" }, { id = constants.EVT_KEYWORD, description = "The keywords field changes" }, { id = constants.EVT_CC, description = "The CC field changes" }, { id = constants.EVT_DEPEND_BLOCK, description = "The dependency tree changes" }, { id = constants.EVT_OTHER, description = "Any field not mentioned above changes" }, ] %] [% neg_events = [ { id = constants.EVT_UNCONFIRMED, description = "The $terms.bug is in the UNCONFIRMED state" }, { id = constants.EVT_CHANGED_BY_ME, description = "The change was made by me" }, ] %] [% relationships = [ { id = constants.REL_ASSIGNEE, description = "Assignee" }, { id = constants.REL_QA, description = "QA Contact" }, { id = constants.REL_REPORTER, description = "Reporter" }, { id = constants.REL_CC, description = "CCed" }, { id = constants.REL_VOTER, description = "Voter" }, ] %] [% FOREACH relationship = relationships %] [% NEXT IF (relationship.id == constants.REL_QA AND NOT useqacontact) OR (relationship.id == constants.REL_VOTER AND NOT usevotes) %] [% END %] [% FOREACH event = events %] [% count = loop.count() %] [% FOREACH relationship = relationships %] [% NEXT IF (relationship.id == constants.REL_QA AND NOT useqacontact) OR (relationship.id == constants.REL_VOTER AND NOT usevotes) %] [% END %] [% END %] [% FOREACH event = neg_events %] [% count = loop.count() %] [% FOREACH relationship = relationships %] [% NEXT IF (relationship.id == constants.REL_QA AND NOT useqacontact) OR (relationship.id == constants.REL_VOTER AND NOT usevotes) %] [% END %] [% END %]
When my relationship to this [% terms.bug %] is: I want to receive mail when:
[% relationship.description FILTER html %]
[% event.description FILTER html %]
  but not when (overrides above):
[% event.description FILTER html %]
[%# Add hidden form fields for fields not used %] [% FOREACH event = events %] [% FOREACH relationship = relationships %] [% IF (relationship.id == constants.REL_QA AND NOT useqacontact) OR (relationship.id == constants.REL_VOTER AND NOT usevotes) %] [% END %] [% END %] [% END %] [% FOREACH event = neg_events %] [% FOREACH relationship = relationships %] [% IF (relationship.id == constants.REL_QA AND NOT useqacontact) OR (relationship.id == constants.REL_VOTER AND NOT usevotes) %] [% END %] [% END %] [% END %] [% IF Param('supportwatchers') %]
User Watching

If you watch a user, it is as if you are standing in their shoes for the purposes of getting email. Email is sent or not according to your preferences for their relationship to the [% terms.bug %] (e.g. Assignee).

[% IF watchedusers.size %] You are watching everyone in the following list:


[% ELSE %] You are currently not watching any users. [% END %]

Add users to my watch list (comma separated list):

Users watching you:
[% IF watchers.size %] [% FOREACH watcher = watchers %] [% watcher FILTER html %]
[% END %] [% ELSE %] No one [% END %]

[% END %]