From 2b9f5bf80911872ca809061bd46d8fc7f64c2929 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 2 Jun 2006 17:50:15 +0000 Subject: Bug 339862: Move Bugzilla::BugMail::MessageToMTA() in a separate module - Patch by Frédéric Buclin r=mkanat a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- importxml.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'importxml.pl') diff --git a/importxml.pl b/importxml.pl index 08be03e5a..c1cdc56b6 100755 --- a/importxml.pl +++ b/importxml.pl @@ -81,6 +81,7 @@ use Bugzilla::Milestone; use Bugzilla::FlagType; use Bugzilla::Config qw(:DEFAULT $datadir); use Bugzilla::BugMail; +use Bugzilla::Mailer; use Bugzilla::User; use Bugzilla::Util; use Bugzilla::Constants; @@ -153,7 +154,7 @@ sub MailMessage { $header .= "From: Bugzilla <$from>\n"; $header .= "Subject: $subject\n\n"; my $sendmessage = $header . $message . "\n"; - Bugzilla::BugMail::MessageToMTA($sendmessage); + MessageToMTA($sendmessage); } } @@ -1198,7 +1199,7 @@ Debug( "Reading xml", DEBUG_LEVEL ); local ($/); $xml = <>; -# If the email was encoded (BugMail::MessageToMTA() does it when using UTF-8), +# If the email was encoded (Mailer::MessageToMTA() does it when using UTF-8), # we have to decode it first, else the XML parsing will fail. my $parser = MIME::Parser->new; $parser->output_to_core(1); -- cgit v1.2.3-24-g4f1b