🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79792

Re: news2mail script.

#79792
From: Julien ÉLIE
Date: Mon, 01 Dec 2008 18:06
38 lines
2381 bytes
Hi D. Stussy,

>> Thanks.  Committed to CURRENT (INN 2.5.0).
>
> Actually, I'm hoping that someone can figure out how to loop through
> sending when two or more lists each want a different sender.  If someone
> figures out how to do that, that is what should be committed.

Instead of:

    my $sa = $INN::Config::newsuser;
    my @src = grep { defined($saddr{$_}) } @good;
    $sa = @saddr{@src} if (@src == 1);
    mailto($token, $sa, @maddr{@good});

you will have to call mailto() for each list in @good:

    foreach (@good) {
        # $_ contains an element of @good.
        # Doesn't $sa{$_} contain the sender?
    }



>> New updated samples for newsfeeds and news2mail.cf are available.
>
> Unless you changed it, note that I used "news2mail.conf".  The other INN
> programs use ".conf", not ".cf", so I changed it to conform.

There is also send-uucp.cf.
I did not change the name of news2mail.cf.

-- 
Julien ÉLIE

« Pour célébrer ce jour heureux, buvons un coup, buvons-en deux. »
  (Aristophane) 
Technical Details
Message-ID: <gh193g$ln5$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder1.news.weretis.net!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mail
References: <ggagf0$2ga$1@snarked.org> <ggu25c$1r8$1@news.trigofacile.com> <ggv3s5$dbp$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <gh193g$ln5$1@news.trigofacile.com>
Subject: Re: news2mail script.
Date: Mon, 1 Dec 2008 19:06:37 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <ggagf0$2ga$1@snarked.org> <ggu25c$1r8$1@news.trigofacile.com> <ggv3s5$dbp$1@snarked.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder1.news.weretis.net!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 38
NNTP-Posting-Host: aaubervilliers-151-1-26-147.w83-112.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1228154801 22245 83.112.17.147 (1 Dec 2008
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Mon, 1 Dec 2008 18:06:41 +0000 (UTC)
In-Reply-To: <ggv3s5$dbp$1@snarked.org>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049