Item8717: trunk unable to send mail on modern perl with sendmail

pencil
Priority: Normal
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component:
Branches:
Reported By: DrakeDiedrich
Waiting For: Main.DrakeDiedrich
Last Change By: KennethLavrsen
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

 

ItemTemplate edit

Summary trunk unable to send mail on modern perl with sendmail
ReportedBy DrakeDiedrich
Codebase trunk
SVN Range
AppliesTo Engine
Component
Priority Normal
CurrentState Closed
WaitingFor DrakeDiedrich
Checkins distro:273595d491ef distro:77b3bfee1bfc
TargetRelease minor
ReleasedIn 1.1.0
Topic revision: r5 - 17 Mar 2010, KennethLavrsen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy