Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perldoc doc shows no way to set SMTP server #6243

Open
p5pRT opened this issue Jan 23, 2003 · 3 comments
Open

perldoc doc shows no way to set SMTP server #6243

p5pRT opened this issue Jan 23, 2003 · 3 comments

Comments

@p5pRT
Copy link

p5pRT commented Jan 23, 2003

Migrated from rt.perl.org#20505 (status was 'open')

Searchable as RT20505$

@p5pRT
Copy link
Author

p5pRT commented Jan 23, 2003

From whatever@davidnicol.com

Created by davidnico@perl.org

I don't have sendmail or a sendmail-like wrapper on my box
and I have installed Mail​::Send in order to let perlbug use
the working smtp server on localhost. It apparently consulted
it since it used part of the smtp server's helo line in its guess
as to my e-mail address, but when it came Sending time, the perlbug
tool once again informed me that it couldn't figure out how to send
the message, instead of locating and using the localhost smtpd.

There doesn't seem to be an option for specifying what smtp server
to use, at least not in the synopsis.

SYNOPSIS
  perlbug [ â��v ] [ â��a address ] [ â��s subject ] [ â��b body â�� â��f inputfile ]
  [ â��F outputfile ] [ â��r returnaddress ] [ â��e editor ] [ â��c adminadâ��
  dress â�� â��C ] [ â��S ] [ â��t ] [ â��d ] [ â��A ] [ â��h ]

  perlbug [ â��v ] [ â��r returnaddress ]
  [ â��A ] [ â��ok â�� â��okay â�� â��nok â�� â��nokay ]

Perl Info

Flags:
    category=utilities
    severity=medium

Site configuration information for perl v5.8.0:

Configured by bhcompile at Sun Sep  1 23:55:07 EDT 2002.

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.4.18-11smp, archname=i386-linux-thread-multi
    uname='linux daffy.perf.redhat.com 2.4.18-11smp #1 smp thu aug 15
06:41:59 edt 2002 i686 i686 i386 gnulinux '
    config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686
-Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red
Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux
-Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads
-Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db
-Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio
-Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less
-isr'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O2 -march=i386 -mcpu=i686',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-I/usr/include/gdbm'
    ccversion='', gccversion='3.2 20020822 (Red Hat Linux Rawhide
3.2-5)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
    libc=/lib/libc-2.2.92.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.2.92'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic
-Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    


@INC for perl v5.8.0:
    /usr/lib/perl5/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/5.8.0
    /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.0
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.0
    /usr/lib/perl5/vendor_perl
    .


Environment for perl v5.8.0:
    HOME=/home/david
    LANG=en_US.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/david/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash



@p5pRT
Copy link
Author

p5pRT commented Mar 21, 2013

From artagnon@gmail.com

This is a bug report for perl from artagnon@​gmail.com,
generated with the help of perlbug 1.39 running under perl 5.17.10.

From 2bcc2d67fcfdc82f6927c062e47607e2ddb8abc0 Mon Sep 17 00​:00​:00 2001
From​: Ramkumar Ramachandra <artagnon@​gmail.com>
Date​: Thu, 21 Mar 2013 14​:43​:43 +0530
Subject​: [PATCH] utils/perlbug.PL​: recognize mstmtp as a valid sendmail
MIME-Version​: 1.0
Content-Type​: multipart/mixed; boundary="------------1.8.2.64.gddf7ded.dirty"

This is a multi-part message in MIME format.
--------------1.8.2.64.gddf7ded.dirty
Content-Type​: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding​: 8bit

perlbug fails to use the modern sendmail-compatible alternative,
msmtp. Fix _probe_for_sendmail to look for the msmtp binary in
addition to sendmail binaries.

Signed-off-by​: Ramkumar Ramachandra <artagnon@​gmail.com>


utils/perlbug.PL | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--------------1.8.2.64.gddf7ded.dirty
Content-Type​: text/x-patch; name="0001-utils-perlbug.PL-recognize-mstmtp-as-a-valid-sendmai.patch"
Content-Transfer-Encoding​: 8bit
Content-Disposition​: attachment; filename="0001-utils-perlbug.PL-recognize-mstmtp-as-a-valid-sendmai.patch"

Inline Patch
diff --git a/utils/perlbug.PL b/utils/perlbug.PL
index bf86670..42f5d6c 100644
--- a/utils/perlbug.PL
+++ b/utils/perlbug.PL
@@ -1076,7 +1076,7 @@ sub _send_message_mailsend {
 
 sub _probe_for_sendmail {
     my $sendmail = "";
-    for (qw(/usr/lib/sendmail /usr/sbin/sendmail /usr/ucblib/sendmail)) {
+    for (qw(/usr/lib/sendmail /usr/sbin/sendmail /usr/ucblib/sendmail /usr/bin/msmtp)) {
         $sendmail = $_, last if -e $_;
     }
     if ( $^O eq 'os2' and $sendmail eq "" ) {

--------------1.8.2.64.gddf7ded.dirty--


---
Flags:   category=core   severity=medium

Site configuration information for perl 5.17.10​:

Configured by artagnon at Thu Mar 21 13​:15​:07 IST 2013.

Summary of my perl5 (revision 5 version 17 subversion 10) configuration​:
  Derived from​: 93f31ee
  Platform​:
  osname=linux, osvers=3.7.9-2-arch, archname=x86_64-linux
  uname='linux luneth 3.7.9-2-arch #1 smp preempt mon feb 25 12​:04​:25 cet 2013 x86_64 gnulinux '
  config_args='-Dusedevel -des -Dprefix=/home/artagnon/localperl'
  hint=recommended, useposix=true, d_sigaction=define
  useithreads=undef, usemultiplicity=undef
  useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
  use64bitint=define, use64bitall=define, uselongdouble=undef
  usemymalloc=n, bincompat5005=undef
  Compiler​:
  cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
  optimize='-O2',
  cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
  ccversion='', gccversion='4.7.2', gccosandvers=''
  intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
  d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
  ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
  alignbytes=8, prototype=define
  Linker and Libraries​:
  ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
  libpth=/usr/local/lib /lib/../lib /usr/lib/../lib /lib /usr/lib /lib64 /usr/lib64
  libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
  perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
  libc=/lib/libc-2.17.so, so=so, useshrplib=false, libperl=libperl.a
  gnulibc_version='2.17'
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
  cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector'

Locally applied patches​:
 


@​INC for perl 5.17.10​:
  /home/artagnon/.perl5/lib/perl5
  /home/artagnon/localperl/lib/site_perl/5.17.10/x86_64-linux
  /home/artagnon/localperl/lib/site_perl/5.17.10
  /home/artagnon/localperl/lib/5.17.10/x86_64-linux
  /home/artagnon/localperl/lib/5.17.10
  .


Environment for perl 5.17.10​:
  HOME=/home/artagnon
  LANG=en_US.utf8
  LANGUAGE (unset)
  LD_LIBRARY_PATH (unset)
  LOGDIR (unset)
  PATH=/home/artagnon/.perl5/bin​:/home/artagnon/.rbenv/shims​:/home/artagnon/bin​:/home/artagnon/bin/depot_tools​:/home/artagnon/.python/bin​:/home/artagnon/.cabal/bin​:/home/artagnon/.rbenv/bin​:/home/artagnon/.ruby/bin​:/home/artagnon/.local/bin​:/home/artagnon/.android/sdk/tools​:/home/artagnon/.android/sdk/platform-tools​:/bin​:/usr/local/bin​:/usr/bin​:/usr/bin/core_perl​:/usr/bin/vendor_perl​:/usr/sbin​:/sbin
  PERL5LIB=/home/artagnon/.perl5/lib/perl5​:
  PERL_BADLANG (unset)
  PERL_LOCAL_LIB_ROOT=​:/home/artagnon/.perl5
  PERL_MB_OPT=--install_base /home/artagnon/.perl5
  PERL_MM_OPT=INSTALL_BASE=/home/artagnon/.perl5
  SHELL=/bin/zsh

@p5pRT
Copy link
Author

p5pRT commented Mar 29, 2013

@jkeenan - Status changed from 'new' to 'open'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants