🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #21301

Re: Slrn 0.8.8 domain name recognition patch

#21301
From: Felix von Leitner
Date: Sun, 05 May 1996 00:00
64 lines
2960 bytes
-----BEGIN PGP SIGNED MESSAGE-----

On 4 May 1996 23:11:47 GMT, Andreas Karrer <karrer@ife.ee.ethz.ch> wrote:
> This will only work in one of the myriads of ways
> a machine can sensibly be configured:
>  - slrn is not really interested in the fully qualified host name, it needs
>    the domain part of the e-mail address,

Which it can't find out portably.

>  - some (versions of IRIX) have resolv.conf in /usr/etc,

IRIX 4.x is *more* than obsolete.  Besides, if /etc/resolv.conf is not
found, slrn reverts back to the old behaviour.

>  - the domain in resolv.conf need not be 
>    the "thing after the @ in the mail address",

But it is most likely.  In fact, I've never seen a site where this
assertion would fail.

>  - newer resolvers use "search", not "domain" in resolv.conf, the
>    semantics of the "domain" clause are somewhat ill-defined,

Newer resolvers don't choke on domain clause, so it does not hurt to
have them there.  BTW: resolv+ uses searchlist.  Anyway.  The domain
thing is very widely used and the check works most of the time, and when
it does not work, neither does it does do any harm.

>  - a NIS domain may or may not be the same as the DNS domain,

Congratulations for this insight.  But what does it have to do with our
problem at hand?  That's why I use /etc/resolv.conf, which is the DNS
domain.

> etc etc. There is simply no portable way to find the domain part of the
> email address on a unix system, and making guesses might do more harm than
> good.

No.  I fail to construct a case where this patch does any harm.

> I find slrn's method wholly acceptable: look up system-wide slrn.rc,
> then ~/.slrnrc , then envvar HOSTNAME. You can even compile it in...

I don't want to force users to set HOSTNAME.  And I don't want to change
config.h manually to put my domain name there.  So this patch gets the
domain automatically for me.  This is exactly the way God intended it to
be ;)

Felix

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2i

iQCVAwUBMYy93h/Da1Yoy+f1AQFhNgP+NyuddWje7XAstxZ/p+7dicDMrF9Sa0pe
/jOUL3/BF71TA4hAvdpgMS/gQ6xZOErZaarxx8P9bpOiDvLjr8RPlxP1OP6VUccN
HIBGuAxeQa0+nkNWOHenXiLNUGtgmU4rwcuKROoxRfGle8NTdBYRMfeUfjOaHlJd
+QYf6LInhR8=
=lwYY
-----END PGP SIGNATURE-----


Technical Details
Message-ID: <4miel3$hgf@sandmann.prz.tu-berlin.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn4ococl.91u.leitner@xorn.prz.tu-berlin.de> <slrn4onp1j.nu.karrer@kuru.ee.ethz.ch>

Show Full Headers
Complete Article Headers
Message-ID: <4miel3$hgf@sandmann.prz.tu-berlin.de>
Subject: Re: Slrn 0.8.8 domain name recognition patch
Date: Sun, 05 May 1996 00:00:00 +0000
From: leitner@sandmann.prz.tu-berlin.de (Felix von Leitner)
References: <slrn4ococl.91u.leitner@xorn.prz.tu-berlin.de> <slrn4onp1j.nu.karrer@kuru.ee.ethz.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 153172565
Organization: PRZ/TU-Berlin
Reply-to: leitner@prz.tu-berlin.de
Newsgroups: news.software.readers