Article View: news.software.nntp
Article #79917Re: news2mail script.
From: D. Stussy
Date: Sun, 21 Dec 2008 23:34
Date: Sun, 21 Dec 2008 23:34
48 lines
2858 bytes
2858 bytes
"Julien ΓLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gim5u2$jo9$1@news.trigofacile.com...
> 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.
>
> I have just filled your request in ticket #103:
>
> http://inn.eyrie.org/trac/ticket/103
I know it's going ot be something like this (pseudocode, not perl):
loop = 0;
foreach(@saddr[@good] as sa) {
recipient_list_array=empty
foreach(@good) {
if (sa == saddr[good]) then append maddr[good] to
recipient_list_array;
if (loop == 0 and saddr[good] == NULL) then append ....
}
send_mail(....)
loop=1
}
This way, each call to the mail sending routine sends using each
source address ONCE - to multiple destination lists, and those with a
NULL source address get added to the message of the first loop.
Therefore, instead of sending "# of good" messages, one sends "# of
unique sender" messages, which may be less but all messages still
cover all mailing lists in "good." I just don't know how to write
this in perl.
> I see that two other issues exist in news2mail:
>
> http://inn.eyrie.org/trac/ticket/72 (news2mail always queues
messages)
> http://inn.eyrie.org/trac/ticket/73 (news2mail's crosspost
handling code generates bad To: headers)
I believe my changes to the script make issue #73 moot. I might have
also dealt with #72 as well.
Technical Details
Message-ID:
<gimk3h$jg$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!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!news.glorb.com!news2!news.nonexiste.net!news.nonexiste.net!news.exile.org!news.snarked.org!not-for-mailReferences:
<ggagf0$2ga$1@snarked.org> <ggu25c$1r8$1@news.trigofacile.com> <ggv3s5$dbp$1@snarked.org> <gim5u2$jo9$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <gimk3h$jg$1@snarked.org> Subject: Re: news2mail script. Date: Sun, 21 Dec 2008 15:34:45 -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> <gim5u2$jo9$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.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!news.glorb.com!news2!news.nonexiste.net!news.nonexiste.net!news.exile.org!news.snarked.org!not-for-mail Newsgroups: news.software.nntp Lines: 48 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 1229902769 624 71.106.211.175 (21 Dec 2008 23:39:29 GMT) X-Complaints-To: newsmaster@snarked.org NNTP-Posting-Date: Sun, 21 Dec 2008 23:39:29 +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