svn: /web/php-bugs/trunk/ include/functions.php www/patch-add.php
| From: | Jani Taskinen | Date: | Tue, 09 Mar 2010 17:14:55 +0000 |
| Subject: | svn: /web/php-bugs/trunk/ include/functions.php www/patch-add.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-7534@lists.php.net to get a copy of this message | ||
jani Tue, 09 Mar 2010 17:14:55 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=296001
Log:
- Spam more people about added patches
Changed paths:
U web/php-bugs/trunk/include/functions.php
U web/php-bugs/trunk/www/patch-add.php
Modified: web/php-bugs/trunk/include/functions.php
===================================================================
--- web/php-bugs/trunk/include/functions.php 2010-03-09 16:56:15 UTC (rev 296000)
+++ web/php-bugs/trunk/include/functions.php 2010-03-09 17:14:55 UTC (rev 296001)
@@ -765,6 +765,10 @@
$headers[] = array(' ID', $bug['id']);
switch ($edit) {
+ case 4:
+ $headers[] = array(' Patch added by', $from);
+ $from = "\"{$from}\" <{$mailfrom}>";
+ break;
case 3:
$headers[] = array(' Comment by', $from);
$from = "\"{$from}\" <{$mailfrom}>";
@@ -878,6 +882,8 @@
if ($in['status'] != $bug['status'] && $edit != 3) { /* status
changed */
$new_status = $in['status'];
$subj .= " #{$bug['id']} [{$tla[$old_status]}->{$tla[$new_status]}]";
+ } elseif ($edit == 4) { /* patch */
+ $subj .= " #{$bug['id']} [PATCH]";
} elseif ($edit == 3) { /* comment */
$subj .= " #{$bug['id']} [Com]";
} else { /* status did not change and not comment */
Modified: web/php-bugs/trunk/www/patch-add.php
===================================================================
--- web/php-bugs/trunk/www/patch-add.php 2010-03-09 16:56:15 UTC (rev 296000)
+++ web/php-bugs/trunk/www/patch-add.php 2010-03-09 17:14:55 UTC (rev 296001)
@@ -130,25 +130,12 @@
$res = bugs_add_comment($bug_id, $auth_user->email, $auth_user->name, $text,
'patch');
// Send emails
- list($mailto, $mailfrom) = get_package_mail($package_name);
+ mail_bug_updates($buginfo, $buginfo, $auth_user->email, $text, 4, $bug_id);
- $protected_email = '"' . spam_protect($email, 'text') .
'"' . "<{$mailfrom}>";
- $extra_headers = "From: {$protected_email}\n";
- $extra_headers.= "Message-ID: <bug-{$bug_id}@{$site_url}>\n";
- $extra_headers.= "X-PHP-Site: {$siteBig}";
-
- bugs_mail(
- $mailto,
- "{$buginfo['bug_type']} #{$bug_id} [PATCH]: {$buginfo['sdesc']}",
- $text,
- $extra_headers
- );
-
$patches = $patchinfo->listPatches($bug_id);
$errors = array();
include "{$ROOT_DIR}/templates/patchadded.php";
exit;
-
}
$email = isset($_GET['email']) ? $_GET['email'] : '';