🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79919

Re: news2mail script.

#79919
From: Julien ÉLIE
Date: Mon, 22 Dec 2008 10:24
56 lines
3634 bytes
Hi D. Stussy,

> 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.

Thanks for the pseudocode.  I have just added it in a comment of #103.


>> 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.

For #73:
--------
There is still
    print SM "To: @a\n\n";
in the code, and @a is @maddr{@good}, thus an array, which generates a broken
header because it is expanded with spaces instead of commas.

Wouldn't
    print SM "To: ".join(",", @a)."\n\n";
solve the issue?


For #72:
--------
We still have '-odq' in the call of sendmail.
According to my man page (which points to Exim...):

       -odq      This option applies to all modes in which Exim accepts incom-
                 ing  messages,  including  the listening daemon. It specifies
                 that the accepting process should not automatically  start  a
                 delivery  process  for  each  message  received. Messages are
                 placed on the queue, and  remain  there  until  a  subsequent
                 queue  runner process encounters them. There are several con-
                 figuration options (such as queue_only) that can be  used  to
                 queue incoming messages under certain conditions. This option
                 overrides all of them and also -odqs. It always forces queue-
                 ing.

-- 
Julien ÉLIE

« J'ai six loyaux serviteurs, ils m'ont appris tout ce que je sais :
  ils s'appellent quoi, pourquoi, quand, comment, où et qui. » (Rudyard Kipling) 
Technical Details
Message-ID: <ginps7$vvc$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> <gim5u2$jo9$1@news.trigofacile.com> <gimk3h$jg$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <ginps7$vvc$1@news.trigofacile.com>
Subject: Re: news2mail script.
Date: Mon, 22 Dec 2008 11:24:04 +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> <gim5u2$jo9$1@news.trigofacile.com> <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!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: 56
NNTP-Posting-Host: amontpellier-152-1-25-72.w81-251.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 1229941447 32748 81.251.58.72 (22 Dec 2008
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Mon, 22 Dec 2008 10:24:07 +0000 (UTC)
In-Reply-To: <gimk3h$jg$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