]> git.donarmstrong.com Git - debbugs.git/blobdiff - t/06_mail_handling.t
pkgsrc is no longer needed
[debbugs.git] / t / 06_mail_handling.t
index cc37feb35ede4248c3b70f52b59ea86f68dfa2ed..0e42ed03f5ea1e97972c13507be19269c6db3e9a 100644 (file)
@@ -1,7 +1,7 @@
 # -*- mode: cperl;-*-
 # $Id: 05_mail.t,v 1.1 2005/08/17 21:46:17 don Exp $
 
-use Test::More tests => 123;
+use Test::More tests => 126;
 
 use warnings;
 use strict;
@@ -26,25 +26,14 @@ use Encode qw(decode encode);
 
 # HTTP::Server:::Simple defines a SIG{CHLD} handler that breaks system; undef it here.
 $SIG{CHLD} = sub {};
-my %config;
-eval {
-     %config = create_debbugs_configuration(debug => exists $ENV{DEBUG}?$ENV{DEBUG}:0);
-};
-if ($@) {
-     BAIL_OUT($@);
-}
+my %config = create_debbugs_configuration();
+
 
 my $sendmail_dir = $config{sendmail_dir};
 my $spool_dir = $config{spool_dir};
 my $config_dir = $config{config_dir};
 
-END{
-     if ($ENV{DEBUG}) {
-         diag("spool_dir:   $spool_dir\n");
-         diag("config_dir:   $config_dir\n");
-         diag("sendmail_dir: $sendmail_dir\n");
-     }
-}
+
 
 # We're going to use create mime message to create these messages, and
 # then just send them to receive.
@@ -208,6 +197,11 @@ my @control_commands =
                             status_key => 'owner',
                             status_value => 'foo@bar.com',
                            },
+      owner_replyto      => {command => 'owner',
+                            value   => '!',
+                            status_key => 'owner',
+                            status_value => 'foo@bugs.something',
+                           },
       noowner      => {command => 'noowner',
                       value   => '',
                       status_key => 'owner',