summaryrefslogtreecommitdiffstats
path: root/attachment.cgi
diff options
context:
space:
mode:
authorpreed%sigkill.com <>2003-02-10 07:04:08 +0100
committerpreed%sigkill.com <>2003-02-10 07:04:08 +0100
commit4a8e3d64a5af8ae7a82cdb7bbbc39afbf38184b4 (patch)
treea04456cea027c8f56eba8a6a433f34eb3b11a4fb /attachment.cgi
parent731b5775ed45d22398a6c7969bd62922853c3b4e (diff)
downloadbugzilla-4a8e3d64a5af8ae7a82cdb7bbbc39afbf38184b4.tar.gz
bugzilla-4a8e3d64a5af8ae7a82cdb7bbbc39afbf38184b4.tar.xz
Bug 124174 - make processmail a package (Bugzilla::BugMail), r=gerv, r=jth, a=justdave
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-xattachment.cgi27
1 files changed, 2 insertions, 25 deletions
diff --git a/attachment.cgi b/attachment.cgi
index bb166e2f8..81037a723 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -574,23 +574,11 @@ sub insert
}
}
- # Send mail to let people know the attachment has been created. Uses a
- # special syntax of the "open" and "exec" commands to capture the output of
- # "processmail", which "system" doesn't allow, without running the command
- # through a shell, which backticks (``) do.
- #system ("./processmail", $bugid , $::userid);
- #my $mailresults = `./processmail $bugid $::userid`;
- my $mailresults = '';
- open(PMAIL, "-|") or exec('./processmail', '-forcecc', $forcecc,
- $::FORM{'bugid'}, $::COOKIE{'Bugzilla_login'});
- $mailresults .= $_ while <PMAIL>;
- close(PMAIL);
-
# Define the variables and functions that will be passed to the UI template.
+ $vars->{'mailrecipients'} = { 'changer' => $::COOKIE{'Bugzilla_login'} };
$vars->{'bugid'} = $::FORM{'bugid'};
$vars->{'attachid'} = $attachid;
$vars->{'description'} = $description;
- $vars->{'mailresults'} = $mailresults;
$vars->{'contenttypemethod'} = $::FORM{'contenttypemethod'};
$vars->{'contenttype'} = $::FORM{'contenttype'};
@@ -791,21 +779,10 @@ sub update
}
- # Send mail to let people know the bug has changed. Uses a special syntax
- # of the "open" and "exec" commands to capture the output of "processmail",
- # which "system" doesn't allow, without running the command through a shell,
- # which backticks (``) do.
- #system ("./processmail", $bugid , $::userid);
- #my $mailresults = `./processmail $bugid $::userid`;
- my $mailresults = '';
- open(PMAIL, "-|") or exec('./processmail', $bugid, DBID_to_name($::userid));
- $mailresults .= $_ while <PMAIL>;
- close(PMAIL);
-
# Define the variables and functions that will be passed to the UI template.
+ $vars->{'mailrecipients'} = { 'changer' => $::COOKIE{'Bugzilla_login'} };
$vars->{'attachid'} = $::FORM{'id'};
$vars->{'bugid'} = $bugid;
- $vars->{'mailresults'} = $mailresults;
# Return the appropriate HTTP response headers.
print "Content-Type: text/html\n\n";