See Email in the Configuration section.
Examples:
Notify only managers of new issues.
$g_notify_flags['new']['threshold_min'] = MANAGER; $g_notify_flags['new']['threshold_max'] = MANAGER; |
Notify Developers and managers of all project events, except, exclude developers from the 'closed' events.
$g_default_notify_flags['threshold_min'] = DEVELOPER; $g_default_notify_flags['threshold_max'] = MANAGER; $g_notify_flags['closed']['threshold_max'] = MANAGER; $g_notify_flags['closed']['threshold_max'] = MANAGER; |
Exclude those who contributed bug notes from getting messages about other changes in the bug.
$g_default_notify_flags['bugnotes'] = OFF; |
Exclude those monitoring bugs from seeing the 'closed' message
$g_notify_flags['closed']['monitor'] = OFF; |
Only notify developers when bugnotes are added.
$g_notify_flags['bugnote']['threshold_min'] = DEVELOPER; $g_notify_flags['bugnote']['threshold_max'] = DEVELOPER; |
Notify managers of changes in sponsorship.
$g_notify_flags['sponsor']['threshold_max'] = MANAGER; $g_notify_flags['sponsor']['threshold_max'] = MANAGER; |
Notify originator and managers of changes in ownership ("Assigned To:").
$g_notify_flags['owner']['threshold_max'] = MANAGER; $g_notify_flags['owner']['threshold_max'] = MANAGER; $g_notify_flags['owner']['reporter'] = ON; |
I'm paranoid about mail. Only send information on issues to those involved in them. Don't send mail people already know about. Also send new bug notifications to managers so they can screen them.
$g_mail_receive_own = OFF; $g_default_notify_flags = array('reporter' => ON, 'handler' => ON, 'monitor' => ON, 'bugnotes' => ON, 'threshold_min' => NOBODY, 'threshold_max' => NOBODY); $g_notify_flags['new']['threshold_min'] = MANAGER; $g_notify_flags['new']['threshold_max'] = MANAGER; |
How do I replace the $g_to_email configuration variable to log all messages to an email logger.
You will need to create a dummy user with the appropriate access level for the notices you want to log. Once this user is added to projects, they will receive mail using the appropriate rules.