Package: bts Severity: wishlist Tags: patch At times it would be useful to be able to use a different command from /usr/sbin/sendmail to move mail off the system. The attached patch creates a BTS_SENDMAIL_PROGRAM option that makes this possible.
Daniel -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental'), (1, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.14-1-686 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
--- bts.orig 2005-12-17 12:58:06.000000000 -0800
+++ bts 2005-12-17 13:07:19.000000000 -0800
@@ -259,6 +259,7 @@
my $cachemode='min';
my $refreshmode=0;
my $mailreader='mutt -f %s';
+my $sendmailprogram='/usr/sbin/sendmail';
# Next, read read configuration files and then command line
# The next stuff is boilerplate
@@ -274,6 +275,7 @@
'BTS_CACHE_MODE' => 'min',
'BTS_FORCE_REFRESH' => 'no',
'BTS_MAIL_READER' => 'mutt -f %s',
+ 'BTS_SENDMAIL_PROGRAM' => '/usr/bin/sendmail',
);
my %config_default = %config_vars;
@@ -314,6 +316,7 @@
$cachemode = $config_vars{'BTS_CACHE_MODE'};
$refreshmode = $config_vars{'BTS_FORCE_REFRESH'} eq 'yes' ? 1 : 0;
$mailreader = $config_vars{'BTS_MAIL_READER'};
+ $sendmailprogram = $config_vars{'BTS_SENDMAIL_PROGRAM'};
}
if (exists $ENV{'BUGSOFFLINE'}) {
@@ -1411,7 +1414,7 @@
exec("/bin/cat")
or die "bts: error running cat: $!\n";
} else {
- exec("/usr/sbin/sendmail", "-t")
+ exec($sendmailprogram, "-t")
or die "bts: error running sendmail: $!\n";
}
}
signature.asc
Description: Digital signature

