diff options
author | lpsolit%gmail.com <> | 2006-06-02 17:50:15 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-06-02 17:50:15 +0000 |
commit | 2b9f5bf80911872ca809061bd46d8fc7f64c2929 (patch) | |
tree | 29443975af530533739b1d7c442e8ebed5254430 /importxml.pl | |
parent | Bug 329377: Bugzilla::Object base class for objects (diff) | |
download | bugzilla-2b9f5bf80911872ca809061bd46d8fc7f64c2929.tar.gz bugzilla-2b9f5bf80911872ca809061bd46d8fc7f64c2929.tar.bz2 bugzilla-2b9f5bf80911872ca809061bd46d8fc7f64c2929.zip |
Bug 339862: Move Bugzilla::BugMail::MessageToMTA() in a separate module - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
Diffstat (limited to 'importxml.pl')
-rwxr-xr-x | importxml.pl | 5 |
1 files changed, 3 insertions, 2 deletions
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); |