set_default(\%config,'sendmail_arguments',[qw(-oem -oi)]);
+=item envelope_from
+
+Envelope from to use for sent messages. If not set, whatever sendmail picks is
+used.
+
+=cut
+
+set_default(\%config,'envelope_from',undef);
+
=item spam_scan
Whether or not spamscan is being used; defaults to 0 (not being used
message => {type => SCALAR,
},
envelope_from => {type => SCALAR,
- optional => 1,
+ default => $config{envelope_from},
},
recipients => {type => ARRAYREF|UNDEF,
optional => 1,
},
);
my @sendmail_arguments = @{$param{sendmail_arguments}};
- push @sendmail_arguments, '-f', $param{envelope_from} if exists $param{envelope_from};
+ push @sendmail_arguments, '-f', $param{envelope_from} if
+ exists $param{envelope_from} and
+ defined $param{envelope_from} and
+ length $param{envelope_from};
my @recipients;
@recipients = @{$param{recipients}} if defined $param{recipients} and
* Pluralize singular tag and usertag in pseudoheaders (Closes: #861234).
Thanks to James Clarke
* Include link to the location of the debbugs source (Closes: #721569).
+ * Add envelope_from configuration variable so sites can set a valid return
+ path if the sendmail default is wrong. (Closes: #719205)
[ Niels Thykier ]
* quitcgi() now returns 400/500 status codes instead of 200 (Closes: #584922)