Savane can be configured to report PHP errors to specific email addresses.
The configuration is done with the $sys_cc_error variable set
in savane.conf.php.  The variable contains an array where the keys are
the email addresses to notify; the values are arrays with two optional keys,

* 'subject' sets the subject line prefix for reports,
* 'exclude' is a list of strings the error messages shouldn't contain
  (such errors are not forwarded to the address in question).

For example,

  $sys_cc_error = [
    'sv-dev@localhost' =>
      [
        'subject' => '[sv-local error]',
        'exclude' => ['[E_USER_NOTICE] permission denied']
      ]
  ];

Note that the feature is implemented with the set_error_handler PHP function,
so it doesn't report certain types of errors that land in the PHP error
log file.

Two variables are used to limit email rate, $sys_error_cc_limit and
$sys_error_cc_period.  The former specifies the maximum number of messages
sent within a period of $sys_error_cc_period; further email messages are
suppressed.  However, when $sys_debug_footer is set, this setting is ignored
and the rate is unlimited.

Copyright (C) 1999, 2000 The SourceForge Crew
Copyright (C) 2000-2006 Mathieu Roy
Copyright (C) 2014, 2016, 2017 Assaf Gordon
Copyright (C) 2001-2011, 2013, 2017 Sylvain Beucler
Copyright (C) 2013, 2014, 2017-2025 Ineiev

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.  This file is offered as-is,
without any warranty.
