+ // Support for a "catch-all" email address, to be used by developers.
+ // This mode can only be activated when the working copy is in restricted
+ // mode, to ensure that production plat/al copies are never affected.
+ global $globals;
+ if ($globals->email_catchall && $globals->core->restricted_platal) {
+ require_once 'Mail/RFC822.php';
+ if (@Mail_RFC822::isValidInetAddress($globals->email_catchall)) {
+ $dests = array($globals->email_catchall);
+ }
+ }
+