X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=tools%2Fdebianqueued-0.9%2Fdebianqueued;h=fb91ff8be4b578b77726850f496ae4381ca33043;hb=dcafe1e024c63a54db7aa2630772992b41e80af5;hp=d99c8c878d96a974895fb4703827c20091a3d162;hpb=d1ba61d1cc6c2fc80d4d7661d58aea4c580690b0;p=dak.git diff --git a/tools/debianqueued-0.9/debianqueued b/tools/debianqueued-0.9/debianqueued index d99c8c87..fb91ff8b 100755 --- a/tools/debianqueued-0.9/debianqueued +++ b/tools/debianqueued-0.9/debianqueued @@ -1097,7 +1097,7 @@ sub process_commands($) { my $commands = shift; my ( @cmds, $cmd, $pgplines, $signator ); local (*COMMANDS); - my ( @files, $file, @removed, $target_delay ); + my ($file, @removed, $target_delay ); format_status_str( $main::current_changes, $commands ); $main::dstat = "c"; @@ -1190,6 +1190,7 @@ outer_loop: while () { next if @word < 1; if ( $word[0] eq "rm" ) { + my @files = (); foreach ( @word[ 1 .. $#word ] ) { my $origword = $_; if (m,^DELAYED/([0-9]+)-day/,) { @@ -2274,11 +2275,7 @@ sub send_mail($$$) { my $package = keys %main::packages ? join( ' ', keys %main::packages ) : ""; - use Email::Send; - - unless ( defined($Email::Send::Sendmail::SENDMAIL) ) { - $Email::Send::Sendmail::SENDMAIL = $conf::mail; - } + use Email::Sender::Simple; if ($conf::overridemail) { $addr = $conf::overridemail; @@ -2293,6 +2290,8 @@ Subject: $subject Date: $date X-Debian: DAK X-DAK: DAK +Precedence: bulk +Auto-Submitted: auto-generated __MESSAGE__ if ( length $package ) { @@ -2302,17 +2301,7 @@ __MESSAGE__ $message .= "\n$text"; $message .= "\nGreetings,\n\n\tYour Debian queue daemon (running on host $main::hostname)\n"; - my $mail = Email::Send->new; - for (qw[Sendmail SMTP]) { - $mail->mailer($_) and last if $mail->mailer_available($_); - } - - my $ret = $mail->send($message); - if ( $ret && $ret !~ /Message sent|success/ ) { - return 0; - } - - return 1; + return Email::Sender::Simple->try_to_send($message); } ## end sub send_mail($$$) #