Item8717: trunk unable to send mail on modern perl with sendmail
Priority: Normal
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component:
Branches:
The error
| 2010-03-16T18:22:22Z warning | Unknown open() mode '&vbar;' at /var/lib/foswik
i/lib/Foswiki/Net.pm line 384.
at /var/lib/foswiki/lib/Foswiki/Net.pm line 384
is logged in error.log on new user registration and _sendEmailBySendmail is called for delivery. We're using open with mode '|', which isn't documented in perlfunc. The documented way to open a pipe in perlfunc is to prepend | to the filename. Perl has been tightening up pipe handling.
sub _sendEmailBySendmail
open( $MAIL, '|', $Foswiki::cfg{MailProgram} )
The issue only affects installs that aren't using Net::SMTP (which is probed for, not configured, and missing from Debian/sid today).
--
DrakeDiedrich - 16 Mar 2010