Product SiteDocumentation Site

7.4. Email Notifications

See Section 5.8, “Email” in the Configuration section.
Examples:
  • Notify only managers of new issues.
    $g_notify_flags['new'] = array(
    	'threshold_min' => MANAGER,
    	'threshold_max' => MANAGER,
    );
    
  • Notify Developers and managers of all project events, except, exclude developers from the 'closed' events.
    $g_default_notify_flags = array(
    	'threshold_min' => DEVELOPER,
    	'threshold_max' => MANAGER,
    );
    $g_notify_flags['closed'] = array(
    	'threshold_min' => MANAGER,
    	'threshold_max' => MANAGER,
    );
    
  • Exclude those who contributed issue notes from getting messages about other changes in the issue.
    $g_default_notify_flags['bugnotes'] = OFF;
    
  • Exclude those monitoring issues from seeing the 'closed' message
    $g_notify_flags['closed']['monitor'] = OFF;
    
  • Only notify developers when issue notes are added.
    $g_notify_flags['bugnote'] = array(
    	'threshold_min' => DEVELOPER,
    	'threshold_max' => DEVELOPER,
    );
    
  • Notify managers of changes in sponsorship.
    $g_notify_flags['sponsor'] = array(
    	'threshold_min' => MANAGER,
    	'threshold_max' => MANAGER,
    );
    
  • Notify originator and managers of changes in ownership ("Assigned To:").
    $g_notify_flags['owner'] = array(
    	'threshold_min' => MANAGER,
    	'threshold_max' => MANAGER,
    	'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 issue notifications to managers so they can screen them.
    $g_email_receive_own = OFF;
    $g_default_notify_flags = array(
    	'reporter'      => ON,
    	'handler'       => ON,
    	'monitor'       => ON,
    	'bugnotes'      => ON,
    	'category'      => ON,
    	'threshold_min' => NOBODY,
    	'threshold_max' => NOBODY
    );
    $g_notify_flags['new'] = array(
    	'threshold_min' => MANAGER,
    	'threshold_max' => MANAGER,
    );
    
  • How do I send 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.