[cord at debian.org: Bug#181086: inn2: /usr/lib/news/bin/news2mail broken.]

Russ Allbery rra at stanford.edu
Sat Feb 15 21:02:37 UTC 2003


> From: Cord Beermann <cord at debian.org>
> Subject: Bug#181086: inn2: /usr/lib/news/bin/news2mail broken.
> To: Debian Bug Tracking System <submit at bugs.debian.org>
> Reply-To: Cord Beermann <cord at debian.org>, 181086 at bugs.debian.org

> Package: inn2
> Version: 2.3.999+20030205-2
> Severity: important

> i use a news2mail-Gateway. After upgrade to the new packages i get
> this:

> bad /usr/sbin/sendmail-oi-oem at /usr/lib/news/bin/news2mail line 110,
> 	<STDIN> line 1.

> I investigated and found that 'mta' is per default set to:

> "/usr/sbin/sendmail -oi -oem %s"

> now /usr/lib/news/bin/news2mail contains at line 102: 

> $sendmail =~ s/\s//g;

> which removes the spaces. 

There are several things wrong with how that script sends mail, but this
patch should at least take care of that one.  Please let me know if the
following patch works, and if so, I'll commit it upstream:

--- news2mail.in        2002/12/03 04:36:46     1.5
+++ news2mail.in        2003/02/15 20:59:26
@@ -98,9 +98,8 @@ sub mailto {
        my($t, $l, @a) = @_ ;
 
        my $sendmail = $inn::mta ;
-       $sendmail =~ s!%s!! ;
-       $sendmail =~ s/\s//g;
-       my @command = ($sendmail, '-ee', '-f<news>', -odq, @a);
+       $sendmail =~ s!\s*%s!! ;
+       my @command = (split (' ', $sendmail), '-ee', '-f<news>', '-odq', @a);
 #      @command[0] = '/usr/local/bin/debug';
 
        syslog('info', join(' ', @command));

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.


More information about the inn-workers mailing list