summaryrefslogtreecommitdiffstats
path: root/processmail
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-01-14 07:23:23 +0100
committerterry%mozilla.org <>2000-01-14 07:23:23 +0100
commitae76aeb8cd3e8fc1350e73bd01f5effaaf726d28 (patch)
treede6202712aa97f6acc9c9e9c40ac0404cc735a7c /processmail
parent000687a8129f2d52fae8baf2e535db97eebd4c54 (diff)
downloadbugzilla-ae76aeb8cd3e8fc1350e73bd01f5effaaf726d28.tar.gz
bugzilla-ae76aeb8cd3e8fc1350e73bd01f5effaaf726d28.tar.xz
Send one last email notification to people when a bug gets reassigned
away from them or they get removed from the CC list.
Diffstat (limited to 'processmail')
-rwxr-xr-xprocessmail20
1 files changed, 15 insertions, 5 deletions
diff --git a/processmail b/processmail
index eedfb0339..8e0b7c29f 100755
--- a/processmail
+++ b/processmail
@@ -36,6 +36,8 @@ $::lockcount = 0;
my $regenerate = 0;
my $nametoexclude = "";
+my @forcecc;
+
sub Lock {
if ($::lockcount <= 0) {
$::lockcount = 0;
@@ -305,6 +307,7 @@ sub ProcessOneBug {
foreach my $v (split(/,/, "$::bug{'cclist'},$::bug{'voterlist'}")) {
push @combinedcc, $v;
}
+ push (@combinedcc, (@forcecc));
my $cclist = fixaddresses("cc", \@combinedcc);
my $logstr = "Bug $i $verb";
if ($tolist ne "" || $cclist ne "") {
@@ -360,11 +363,6 @@ if (open(FID, "<data/nomail")) {
close FID;
}
-if (($#ARGV < 0) || ($#ARGV > 1)) {
- print "Usage error: processmail {bugid} {nametoexclude}\nOr: processmail regenerate\n";
- exit;
-}
-
# To recreate the shadow database, run "processmail regenerate" .
if ($ARGV[0] eq "regenerate") {
$regenerate = 1;
@@ -383,6 +381,18 @@ if ($ARGV[0] eq "regenerate") {
exit;
}
+if ($ARGV[0] eq "-forcecc") {
+ shift(@ARGV);
+ foreach my $i (split(/,/, shift(@ARGV))) {
+ push(@forcecc, trim($i));
+ }
+}
+
+if (($#ARGV < 0) || ($#ARGV > 1)) {
+ print "Usage error: processmail {bugid} {nametoexclude}\nOr: processmail regenerate\n";
+ exit;
+}
+
if ($#ARGV == 1) {
$nametoexclude = lc($ARGV[1]);
}