diff options
| author | fukachan <fukachan> | 2018-01-01 03:52:14 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2018-01-01 03:52:14 +0000 |
| commit | ecc21ac78150d32a0125703ca03b085c9805c7c6 (patch) | |
| tree | 079acf91ecaaf4ab2f84846f210bb33b9b31f36c /cpan/lib/Mail/Mailer/qmail.pm | |
| parent | 7bc5f8929e4ebb0cc24bf9a4ae7a67228aa70152 (diff) | |
| download | fml8-MailTools-2-19.tar.gz fml8-MailTools-2-19.tar.bz2 fml8-MailTools-2-19.zip | |
import MailTools-2.19MailTools-2-19
Diffstat (limited to 'cpan/lib/Mail/Mailer/qmail.pm')
| -rw-r--r-- | cpan/lib/Mail/Mailer/qmail.pm | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/cpan/lib/Mail/Mailer/qmail.pm b/cpan/lib/Mail/Mailer/qmail.pm index ea312606..19660675 100644 --- a/cpan/lib/Mail/Mailer/qmail.pm +++ b/cpan/lib/Mail/Mailer/qmail.pm @@ -1,9 +1,22 @@ +# Copyrights 1995-2017 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 qw(@ISA); -require Mail::Mailer::rfc822; -@ISA = qw(Mail::Mailer::rfc822); +use vars '$VERSION'; +$VERSION = '2.19'; + +use base 'Mail::Mailer::rfc822'; -sub exec { - my($self, $exe, $args, $to) = @_; - exec(( $exe )); +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; |
