init III
This commit is contained in:
22
Perl OTRS/Kernel/cpan-lib/Mail/Mailer/qmail.pm
Normal file
22
Perl OTRS/Kernel/cpan-lib/Mail/Mailer/qmail.pm
Normal file
@@ -0,0 +1,22 @@
|
||||
# Copyrights 1995-2016 by [Mark Overmeer <perl@overmeer.net>].
|
||||
# For other contributors see ChangeLog.
|
||||
# See the manual pages for details on the licensing terms.
|
||||
# Pod stripped from pm file by OODoc 2.02.
|
||||
|
||||
use strict;
|
||||
|
||||
package Mail::Mailer::qmail;
|
||||
use vars '$VERSION';
|
||||
$VERSION = '2.18';
|
||||
|
||||
use base 'Mail::Mailer::rfc822';
|
||||
|
||||
sub exec($$$$)
|
||||
{ my($self, $exe, $args, $to, $sender) = @_;
|
||||
my $address = defined $sender && $sender =~ m/\<(.*?)\>/ ? $1 : $sender;
|
||||
|
||||
exec($exe, (defined $address ? "-f$address" : ()));
|
||||
die "ERROR: cannot run $exe: $!";
|
||||
}
|
||||
|
||||
1;
|
||||
Reference in New Issue
Block a user