From: justdave%syndicomm.com <> Date: Thu, 15 Apr 2004 11:24:39 +0000 (+0000) Subject: Bug 237638: make bugzilla_email_append.pl work with BugMail.pm instead of processmail X-Git-Tag: bugzilla-2.18rc1~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f967249484892a3ab49b3b369b0f6995fee60288;p=thirdparty%2Fbugzilla.git Bug 237638: make bugzilla_email_append.pl work with BugMail.pm instead of processmail a=justdave --- diff --git a/contrib/bugzilla_email_append.pl b/contrib/bugzilla_email_append.pl index 007fd153ce..fee9b62ac8 100755 --- a/contrib/bugzilla_email_append.pl +++ b/contrib/bugzilla_email_append.pl @@ -40,6 +40,7 @@ BEGIN { require "globals.pl"; use BugzillaEmail; use Bugzilla::Config qw(:DEFAULT $datadir); +use Bugzilla::BugMail; # Create a new MIME parser: my $parser = new MIME::Parser; @@ -118,7 +119,7 @@ my $Body = "Subject: " . $Subject . "\n" . $Comment; my $long_desc_query = "INSERT INTO longdescs SET bug_id=$found_id, who=$userid, bug_when=NOW(), thetext=" . SqlQuote($Body) . ";"; SendSQL($long_desc_query); -system("./processmail", $found_id, $SenderShort); +Bugzilla::BugMail::Send( $found_id, { changer => $SenderShort } ); sub DealWithError { my ($reason) = @_;