cvs: php-bugs-web /include functions.inc
| From: | Wez Furlong | Date: | Sun, 19 Jan 2003 01:16:01 +0000 |
| Subject: | cvs: php-bugs-web /include functions.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-15165@lists.php.net to get a copy of this message | ||
wez Sat Jan 18 20:16:01 2003 EDT
Modified files:
/php-bugs-web/include functions.inc
Log:
If a developer assigns some other developer to a bug, let that poor,
unsuspecting, victim know of this event by mailing them a copy of the bug
directly to their php.net address.
Index: php-bugs-web/include/functions.inc
diff -u php-bugs-web/include/functions.inc:1.60 php-bugs-web/include/functions.inc:1.61
--- php-bugs-web/include/functions.inc:1.60 Sun Jan 12 06:22:06 2003
+++ php-bugs-web/include/functions.inc Sat Jan 18 20:16:00 2003
@@ -1,4 +1,4 @@
-<?php /* vim: set noet ts=4 sw=4 ft=php3: : */
+<?php /* vim: set noet ts=4 sw=4 ft=php : */
/* scrub user input so it can be re-output */
function clean($in)
@@ -285,7 +285,7 @@
} else { /* status did not change and not comment */
$subj = "#{$bug['id']} [{$tla[$bug['status']]}]: ";
}
-
+
# the user gets sent mail with an envelope sender that ignores bounces
@mail($bug[email],
"Bug " . rinse($subj) . txfield('sdesc'),
@@ -301,7 +301,23 @@
"From: $from\n".
"X-PHP-Bug: $bug[id]\n".
"In-Reply-To: <bug-$bug[id]@bugs.php.net>");
+
+ }
+ /* if a developer assigns someone else, let that other person know about it */
+ if ($edit == 1 && $in['assign'] && $in['assign'] !=
$bug['assign']
+ && ($in['assign'] . "@php.net") != $from) {
+
+ $unknowing_victim = $in['assign'] . '@php.net';
+
+ @mail($unknowing_victim,
+ rinse($subj) . txfield('sdesc'),
+ wordwrap($unknowing_victim . ' you have just been assigned to this bug by ' .
$from . "\n\n") .
+ $dev_text,
+ "From: $from\n".
+ "X-PHP-Bug: $bug[id]\n".
+ "In-Reply-To: <bug-$bug[id]@bugs.php.net>");
}
+
}
function changed($n) {
@@ -477,7 +493,7 @@
array_push($ignored, $match);
}
}
-
+
return array(" AND MATCH (email,sdesc,ldesc) AGAINST ('$search')", $ignored);
}