cvs: pearweb /public_html/bugs/include functions.inc
| From: | Pierre-Alain Joye | Date: | Wed, 22 Feb 2006 01:53:53 +0000 |
| Subject: | cvs: pearweb /public_html/bugs/include functions.inc | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-38487@lists.php.net to get a copy of this message | ||
pajoye Wed Feb 22 01:53:53 2006 UTC
Modified files:
/pearweb/public_html/bugs/include functions.inc
Log:
- preserve subscribers email, send as Bcc
http://cvs.php.net/viewcvs.cgi/pearweb/public_html/bugs/include/functions.inc?r1=1.98&r2=1.99&diff_format=u
Index: pearweb/public_html/bugs/include/functions.inc
diff -u pearweb/public_html/bugs/include/functions.inc:1.98
pearweb/public_html/bugs/include/functions.inc:1.99
--- pearweb/public_html/bugs/include/functions.inc:1.98 Tue Feb 21 15:58:55 2006
+++ pearweb/public_html/bugs/include/functions.inc Wed Feb 22 01:53:52 2006
@@ -15,7 +15,7 @@
* @package Bugs
* @copyright Copyright (c) 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License
- * @version $Id: functions.inc,v 1.98 2006/02/21 15:58:55 pajoye Exp $
+ * @version $Id: functions.inc,v 1.99 2006/02/22 01:53:52 pajoye Exp $
*/
@@ -675,7 +675,7 @@
$headers = array();
/* Default addresses */
- list($mailto,$mailfrom) =
get_package_mail(oneof($in['package_name'],$bug['package_name']), $id);
+ list($mailto,$mailfrom, $Bcc) =
get_package_mail(oneof($in['package_name'],$bug['package_name']), $id);
/* Get rid of slashes in bug status */
$bug['status'] = rinse($bug['status']);
@@ -802,6 +802,7 @@
"[$siteBig-BUG] " . rinse($subj) . txfield('sdesc'),
$user_text,
"From: $siteBig Bug Database <$mailfrom>\n".
+ "Bcc: $Bcc\n" .
"X-PHP-Bug: $bug[id]\n".
"In-Reply-To: <bug-$bug[id]@$site.php.net>",
"-fbounces-ignored@php.net");
@@ -1027,11 +1028,11 @@
foreach ($maintainers as $data) {
$to[] = $data['email'];
}
- $mails = $dbh->getCol('SELECT email FROM bugdb_subscribe WHERE bug_id=' .
$bug_id);
- $to = array_merge($to, $mails);
- $to = array_unique($to);
-
- return array(implode(', ', $to), $bugEmail);
+ /* subscription */
+ $bcc = $dbh->getCol('SELECT email FROM bugdb_subscribe WHERE bug_id=' . $bug_id);
+ $bcc = array_diff($bcc, $to);
+ $bcc = array_unique($bcc);
+ return array(implode(', ', $to), $bugEmail, implode(', ', $bcc));
}
/**