Article View: news.software.nntp
Article #79795Re: news2mail script.
From: D. Stussy
Date: Mon, 01 Dec 2008 22:02
Date: Mon, 01 Dec 2008 22:02
41 lines
2679 bytes
2679 bytes
"Julien ΓLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gh193g$ln5$1@news.trigofacile.com...
> >> 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?
> }
Not exactly. One would have to call mailto() for each UNIQUE SENDER in
saddr{}. A null entry (or no entry) in saddr{} for a given list can match
any non-null entry (but should only actually be matched to one - e.g. the
first). Note that the number of unique senders is not necessarily the same
as the number of lists.
> >> 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.
vs. incoming.conf, inn.conf, innfeed.conf, etc.... Your choice.
Technical Details
Message-ID:
<gh1oma$nmj$2@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!newsfeed.freenet.de!newsfeed0.kamp.net!newsfeed.kamp.net!news.unit0.net!news.glorb.com!news-xfer.nntp.sonic.net!news.snarked.org!not-for-mailReferences:
<ggagf0$2ga$1@snarked.org> <ggu25c$1r8$1@news.trigofacile.com> <ggv3s5$dbp$1@snarked.org> <gh193g$ln5$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <gh1oma$nmj$2@snarked.org> Subject: Re: news2mail script. Date: Mon, 1 Dec 2008 14:02:59 -0800 From: "D. Stussy" <spam@bde-arc.ampr.org> References: <ggagf0$2ga$1@snarked.org> <ggu25c$1r8$1@news.trigofacile.com> <ggv3s5$dbp$1@snarked.org> <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!newsfeed.freenet.de!newsfeed0.kamp.net!newsfeed.kamp.net!news.unit0.net!news.glorb.com!news-xfer.nntp.sonic.net!news.snarked.org!not-for-mail Newsgroups: news.software.nntp Lines: 41 Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org> NNTP-Posting-Host: pool-71-106-211-175.lsanca.dsl-w.verizon.net X-Trace: snarked.org 1228170762 24275 71.106.211.175 (1 Dec 2008 22:32:42 GMT) X-Complaints-To: newsmaster@snarked.org NNTP-Posting-Date: Mon, 1 Dec 2008 22:32:42 +0000 (UTC) X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478