🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79750

Re: news2mail script.

#79750
From: Julien ÉLIE
Date: Sun, 23 Nov 2008 10:28
60 lines
3327 bytes
Hi D. Stussy,

> I use a modified version of the script which has a configuration file that
> has a THIRD parameter - SMTP envelope from address.  Would this be useful
> to everyone/anyone?
[...]
> Why do that?  Because some mailing lists (perhaps many, maybe eventually
> all) will only allow messages to the list that come from list members.
> Therefore, the sending address needs to be a list member.  Therefore, what
> I have is for "~news/etc/news2mail.conf" (not ".cf" - for consistency) is:
>
> Newsfeeds-name      List-to-address     [List-sender-address]
>
> Newsfeeds-name:    Name used in the newsfeeds file for the gateway feed
> (required).
> List-to-address:        List address to send to (required).
> List-sender-address:    Envelope-From address to use (a list member's
> address; optional, NEW).

In fact, you want to change the meaning of the first parameter.
Currently in newsfeeds:

n2m!:!*:Acp,Tc,Wn*:<pathbin>/news2mail
news-software-nntp@sender.org:news.software.nntp:Tm:n2m!

And in news2mail.cf:

news-software-nntp@sender.org    address@list.org

where the first parameter is the sender's address and the second one
the address of the mailing-list.


Then you want to use the third (optional) parameter as the first one
and allow to put the name you want in newsfeeds, which enables you to have
the same sender's address for several mailing-lists.
And use it in the "-f" flag passed to sendmail.

It is a useful improvement.


> 2)  Hiding "Newsgroups:" header from mailing list, et. al.

It is changed to X-Newsgroups:.


> -#
> -# the syslog calls are here but don't work on my system
> -#
> openlog('news2mail', 'pid', 'mail');

It is true that it does not work on some systems.  The patch is here:
    http://inn.eyrie.org/viewcvs/trunk/backends/news2mail.in?r1=7687&r2=8183&view=patch

-- 
Julien ÉLIE

« Medicus dedit qui temporis morbo curam,
  Is plus remedii quam cutis sector dedit. » 
Technical Details
Message-ID: <ggbb82$umo$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.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!news.trigofacile.com!not-for-mail
References: <ggagf0$2ga$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <ggbb82$umo$1@news.trigofacile.com>
Subject: Re: news2mail script.
Date: Sun, 23 Nov 2008 11:28:16 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <ggagf0$2ga$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.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 60
NNTP-Posting-Host: aaubervilliers-151-1-85-118.w83-199.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 1227436098 31448 83.199.148.118 (23 Nov 2008
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Sun, 23 Nov 2008 10:28:18 +0000 (UTC)
In-Reply-To: <ggagf0$2ga$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