cvs: SVNROOT / commit-email.php
[email protected] ("Gwynne Raskind") Sat, 20 Dec 2008 19:31:22 -0000
| Newsgroups | svn.migration |
|---|---|
| Message-ID | <cvsgwynne1229801482@cvsserver> |
gwynne Sat Dec 20 19:31:22 2008 UTC
Modified files:
/SVNROOT commit-email.php
Log:
Instead of a match-all expression, let's go with a fallback
http://cvs.php.net/viewvc.cgi/SVNROOT/commit-email.php?r1=1.10&r2=1.11&diff_format=u
Index: SVNROOT/commit-email.php
diff -u SVNROOT/commit-email.php:1.10 SVNROOT/commit-email.php:1.11
--- SVNROOT/commit-email.php:1.10 Sat Dec 20 19:27:54 2008
+++ SVNROOT/commit-email.php Sat Dec 20 19:31:21 2008
@@ -7,7 +7,7 @@
// -----------------------------------------------------------------------------------------------------------------------------
// Constants
-$version = substr('$Revision: 1.10 $', strlen('$Revision: '), -2);
+$version = substr('$Revision: 1.11 $', strlen('$Revision: '), -2);
$smtp_server = '127.0.0.1';
$commit_email_list = array(
// FastCGI ISAPI
@@ -92,9 +92,8 @@
// Internals
'|^systems|' => array('[email protected]'),
'|^SVNROOT|' => array('[email protected]'),
-
- '|^.|' => array('[email protected]')
);
+$fallback_addresses = array('[email protected]');
// -----------------------------------------------------------------------------------------------------------------------------
// Get info from commit
@@ -130,6 +129,9 @@
$parent_path = $changed_path;
}
}
+if (count($emails_to) == 0) {
+ $emails_to = $fallback_addresses;
+}
$emails_to = array_unique($emails_to);
// -----------------------------------------------------------------------------------------------------------------------------