qw($gVersionTimeIndex),
qw($gSimpleVersioning),
qw($gCVETracker),
- qw($gSendmail $gLibPath $gSpamScan @gExcludeFromControl),
+ qw($gSendmail @gSendmailArguments $gLibPath $gSpamScan @gExcludeFromControl),
qw(%gSeverityDisplay @gTags @gSeverityList @gStrongSeverities),
qw(%gTagsSingleLetter),
qw(%gSearchEstraier),
set_default(\%config,'sendmail','/usr/lib/sendmail');
+=item sendmail_arguments
+
+Default arguments to pass to sendmail. Defaults to C<qw(-oem -oi)>.
+
+=cut
+
+set_default(\%config,'sendmail_arguments',[qw(-oem -oi)]);
+
=item spam_scan
Whether or not spamscan is being used; defaults to 0 (not being used
sub send_mail_message{
my %param = validate_with(params => \@_,
spec => {sendmail_arguments => {type => ARRAYREF,
- default => [qw(-odq -oem -oi)],
+ default => [$config{sendmail_arguments}],
},
parse_for_recipients => {type => BOOLEAN,
default => 0,
},
},
);
- my @sendmail_arguments = qw(-odq -oem -oi);
+ my @sendmail_arguments = @{$param{sendmail_arguments}};
push @sendmail_arguments, '-f', $param{envelope_from} if exists $param{envelope_from};
my @recipients;
maintainer (closes: #556863). Thanks to Yves-Alexis Perez.
* Linkify CVE reports (closes: #568464). Thanks to Martin Zobel-Helas.
* Fix noaffects option
+ * Allow the default sendmail options to be specified in the config file;
+ don't use -obq by default anymore.
-- Don Armstrong <don@debian.org> Wed, 26 Aug 2009 21:32:53 -0700