πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83483

Re: Please consider this INN patch for mailpost

#83483
From: D. Stussy
Date: Mon, 04 Oct 2010 05:39
33 lines
2598 bytes
"Julien Γ‰LIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:i89ruf$efp$1@news.trigofacile.com...
> >>     chop ($Gateway = `/bin/hostname`) if ! $Gateway ;
> >
> > I specifically left that out for one reason:  Virtual hosting.  The
> > /bin/hostname name may not be the same name as the news server, nor
even
> > under the same domain name.  We could add another command line
parameter to
> > exclude additional hostnames if necessary.
> >
> > On my system, my news server is "news.snarked.org", but /bin/hostname
> > returns only "snarked.org" which has no DNS address-type records.
>
> Anyway, I see in lib/innconf.c that when "fromhost" is unset, it uses:
>
>     if (innconf->fromhost == NULL)
>         innconf->fromhost = xstrdup(GetFQDN(innconf->domain));
>
> It corresponds to what the documentation states in inn.conf:  "The
default
> is the fully-qualified domain name of the local host."
> Therefore, the definition in mailpost will do nothing (and no harm) but
> it prevents the following line:
>   $Gateway .= '|' . $INN::Config::pathhost if $INN::Config::pathhost;
> to put a "|" at the beginning of the regexp in case $Gateway is not
defined.
> (Which should normally not happen.)

You are correct that at this point, I assumed "$Gateway" was not empty.
Was that in fact a bad assumption?

Technical Details
Message-ID: <i8bpb9$hp$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!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news.glorb.com!news.snarked.org!pool-71-106-210-230.lsanca.dsl-w.verizon.net!not-for-mail
References: <i4s5et$6km$1@snarked.org> <i82hhu$74b$1@news.trigofacile.com> <i82sm5$9g3$1@snarked.org> <i89ruf$efp$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <i8bpb9$hp$1@snarked.org>
Subject: Re: Please consider this INN patch for mailpost
Date: Sun, 3 Oct 2010 22:39:55 -0700
From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org>
References: <i4s5et$6km$1@snarked.org> <i82hhu$74b$1@news.trigofacile.com> <i82sm5$9g3$1@snarked.org> <i89ruf$efp$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!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news.glorb.com!news.snarked.org!pool-71-106-210-230.lsanca.dsl-w.verizon.net!not-for-mail
Newsgroups: news.software.nntp
Lines: 33
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
Injection-Date: Mon, 4 Oct 2010 05:39:53 +0000 (UTC)
Injection-Info: snarked.org;
 posting-host="pool-71-106-210-230.lsanca.dsl-w.verizon.net:71.106.210.230";
 logging-data="569"; mail-complaints-to="newsmaster+complaints@snarked.org"
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478