Subject: | [PATCH] Email::Send::Sendmail: Looks in wrong location for sendmail binary |
Date: | Sun, 12 Jul 2009 18:06:56 +0200 |
To: | bug-Email-Send [...] rt.cpan.org |
From: | Ansgar Burchardt <ansgar [...] mathi.uni-heidelberg.de> |
Hi,
I use Email-Send 2.197 from Debian. The fix for RT #24482 has a small
mistake:
for my $dir (
File::Spec->path,
File::Spec->catfile('', qw(usr sbin sendmail)),
File::Spec->catfile('', qw(usr lib sendmail)),
) {
if ( -x "$dir/sendmail" ) {
This will look in /usr/sbin/sendmail/sendmail for the binary. The
"sendmail" should be omitted from the directory names (patch attached).
Regards,
Ansgar
Message body is not shown because sender requested not to inline it.