Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Email-Send CPAN distribution.

Report information
The Basics
Id: 34338
Status: resolved
Priority: 0/
Queue: Email-Send

People
Owner: Nobody in particular
Requestors: GWOLF [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.192
Fixed in: (no value)



Hi, This is a followup for Debian bug report #471885 (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=471885) In many systems, the Sendmail binary is located at /usr/sbin - which is not in most users' search path, and thus will not be found by your module. I'm attaching a patch that allows this module to find sendmail.
Subject: a
Subject: Patch not uploaded?
hmh... It seems the patch was not uploaded (I get only an 'a' without a link). Anyway, here it is, inlined: Index: libemail-send-perl/lib/Email/Send/Qmail.pm =================================================================== --- libemail-send-perl.orig/lib/Email/Send/Qmail.pm 2008-03-21 19:57:46.000000000 -0600 +++ libemail-send-perl/lib/Email/Send/Qmail.pm 2008-03-21 19:58:05.000000000 -0600 @@ -21,7 +21,9 @@ my $class = shift; my $sendmail; - for my $dir (File::Spec->path) { + my @path = File::Spec->path; + push @path, '/usr/sbin' unless grep m!^/usr/sbin/?$!, @path + for my $dir (@path) { if ( -x "$dir/$QMAIL" ) { $sendmail = "$dir/$QMAIL"; last; Index: libemail-send-perl/lib/Email/Send/Sendmail.pm =================================================================== --- libemail-send-perl.orig/lib/Email/Send/Sendmail.pm 2008-03-21 19:56:57.000000000 -0600 +++ libemail-send-perl/lib/Email/Send/Sendmail.pm 2008-03-21 19:57:39.000000000 -0600 @@ -23,7 +23,9 @@ return $SENDMAIL if defined $SENDMAIL; my $sendmail; - for my $dir (File::Spec->path) { + my @path = File::Spec->path; + push @path, '/usr/sbin' unless grep m!^/usr/sbin/?$!, @path + for my $dir (@path) { if ( -x "$dir/sendmail" ) { $sendmail = "$dir/sendmail"; last;
2.195 will always look in /usr/sbin -- rjbs