🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83482

Re: Please consider this INN patch for mailpost

#83482
From: Julien ÉLIE
Date: Sun, 03 Oct 2010 12:12
30 lines
2574 bytes
Hi Dieter,

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

-- 
Julien ÉLIE

« It's documented in The Book, somewhere... » (Larry Wall) 
Technical Details
Message-ID: <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!weretis.net!feeder4.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-48-199.w83-114.abo.wanadoo.fr!not-for-mail
References: <i4s5et$6km$1@snarked.org> <i82hhu$74b$1@news.trigofacile.com> <i82sm5$9g3$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <i89ruf$efp$1@news.trigofacile.com>
Subject: Re: Please consider this INN patch for mailpost
Date: Sun, 3 Oct 2010 14:12:00 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <i4s5et$6km$1@snarked.org> <i82hhu$74b$1@news.trigofacile.com> <i82sm5$9g3$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!weretis.net!feeder4.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-48-199.w83-114.abo.wanadoo.fr!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 30
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 3 Oct 2010 12:11:59 +0000 (UTC)
Injection-Info: news.trigofacile.com;
 posting-host="aaubervilliers-151-1-48-199.w83-114.abo.wanadoo.fr:83.114.132.199";
 logging-data="14841"; mail-complaints-to="abuse@trigofacile.com"
In-Reply-To: <i82sm5$9g3$1@snarked.org>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6002.18197
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18263