INN 2.5, inn-CURRENT-20090103 Issues

William Kronert wkronert at sunstroke.sdsu.edu
Fri Jan 16 23:54:24 UTC 2009


Hi Julien,

At 02:45 PM 1/16/2009, Julien ÉLIE wrote:
>>I got the same error message.  It appears the 
>>MAILCMD is triggering the error message from 
>>what I can tell.  Any thoughts on what to do with that?

>    innmail -h
>    innmail -s "test" mail-address
>Does it generate the warning?
>Is this patch changing something?
>
>--- innmail.in  (révision 8263)
>+++ innmail.in  (copie de travail)
>@@ -13,7 +13,7 @@
>$0 =~ s!.*/!! ;
>
>require 5.001 ;
>-require 'getopts.pl' ;
>+use Getopts::Std;
>use vars qw($opt_h);
>
>die "$0: No \$INN::Config::mta  variable defined.\n"
>@@ -26,7 +26,7 @@
>$usage = "usage: $0 -s subject addresses\n\n" .
>     "Reads stdin for message body\n" ;
>
>-&Getopts ("s:h") || die $usage ;
>+getopts("s:h") || die $usage ;
>
>die $usage if $opt_h ;

Using the above patch and then using sendinpaths 
I no longer receive and warnings or error messages and works fine.

The test you suggested with innmail -h and 
innmail -s "test" mail-address on innmail before 
adding in the above patch gave me this output:

innmail -h
  - Use of uninitialized value in string eq at 
/usr/lib/perl5/5.8.5/getopts.pl line 26.
I then went to getopts.pl and look at line 26 and found:

                 if($pos >= $[) {
                         if($args[$pos+1] eq ':') {   ### <--- Line 26
                                 shift(@ARGV);

innmail -s "test" mail-address
Use of uninitialized value in string eq at (eval 139) line 3.

After adding in the patch and the running: 
innmail -h I do not get any warnings, error messages.

So there is a problem, at least on our OS with 
innmail.  Using the patch seems to solve this problem.

Bill





More information about the inn-workers mailing list