NetBSD Problem Report #6965
Received: (qmail 29982 invoked from network); 8 Feb 1999 10:51:10 -0000
Message-Id: <199902081050.LAA01570@vader.runit.sintef.no>
Date: Mon, 8 Feb 1999 11:50:38 +0100 (MET)
From: Havard.Eidnes@runit.sintef.no
Reply-To: Havard.Eidnes@runit.sintef.no
To: gnats-bugs@gnats.netbsd.org
Subject: /etc/mail.rc should most probably set 'crt'
X-Send-Pr-Version: 3.95
>Number: 6965
>Category: bin
>Synopsis: /etc/mail.rc should most probably set 'crt'
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Feb 08 03:05:01 +0000 1999
>Closed-Date: Mon Feb 08 20:49:10 +0000 1999
>Last-Modified: Mon Feb 08 20:49:54 +0000 1999
>Originator: Havard Eidnes
>Release: NetBSD-current 19990131
>Organization:
RUNIT AS
>Environment:
System: NetBSD vader.runit.sintef.no 1.3I NetBSD 1.3I (VADER) #0: Sat Jan 9 18:53:46 MET 1999 he@hugin.runit.sintef.no:/usr/src/sys/arch/i386/compile/VADER i386
>Description:
/etc/mail.rc does not set the 'crt' option to mail.
This means that anyone viewing a message with more than 24
lines will have the message scroll off the top of the screen.
Furthermore, on PCs this will (wscons or not) happen so
quickly that the user is in most cases only left staring at
the last 24 lines of the message.
Setting the 'crt' option turns on the use of a pager so that
the above lossage is avoided.
In particular, this will happen on any freshly installed
system for 'root' once the first output from the nightly
security job is run, which usually produces a huge message.
>How-To-Repeat:
Read any message with > 24 lines using 'mail' without 'crt'
set.
>Fix:
Make 'crt' be among the default variables set in /etc/mail.rc.
People posessing hardcopy terminals can go and remove this
option themselves, since they're few and far between these
days.
>Release-Note:
>Audit-Trail:
From: "Perry E. Metzger" <perry@piermont.com>
To: Havard.Eidnes@runit.sintef.no
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/6965: /etc/mail.rc should most probably set 'crt'
Date: 08 Feb 1999 11:49:26 -0500
Havard.Eidnes@runit.sintef.no writes:
> /etc/mail.rc does not set the 'crt' option to mail.
Well, some people don't like it, and I have "set crt" in my .mailrc --
it is easy to add it.
Perhaps we should add it to the dot.mailrc file in /usr/share/skel/,
though.
Perry
From: Havard.Eidnes@runit.sintef.no
To: perry@piermont.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/6965: /etc/mail.rc should most probably set 'crt'
Date: Mon, 08 Feb 1999 18:14:58 +0100
> > /etc/mail.rc does not set the 'crt' option to mail.
>
> Well, some people don't like it, and I have "set crt" in my
> .mailrc -- it is easy to add it.
Hm. I do not understand why we should force new users to
a) know about this option and
b) set it
in order to get reasonable behaviour out of the 'mail' program.
Somehow, I do not consider it reasonable default behaviour of 'mail'
to scroll the entire message off the top of your screen and leave
you with the 24 or 25 last lines visible. (And now with the fixes
to wscons it will even scroll off quickly, too! ;-)
Or is there perhaps some other more compelling reason why we should
leave this option off by default?
- H=E5vard
From: "Perry E. Metzger" <perry@piermont.com>
To: Havard.Eidnes@runit.sintef.no
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/6965: /etc/mail.rc should most probably set 'crt'
Date: 08 Feb 1999 12:53:26 -0500
Havard.Eidnes@runit.sintef.no writes:
> Hm. I do not understand why we should force new users to
>
> a) know about this option and
> b) set it
Thus, my suggestion about putting it in the skeleton .mailrc in skel/
-- so that people can turn it off, but so that people get it when
their accounts get created.
From: Havard.Eidnes@runit.sintef.no
To: perry@piermont.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/6965: /etc/mail.rc should most probably set 'crt'
Date: Mon, 08 Feb 1999 18:57:48 +0100
> > Hm. I do not understand why we should force new users to
> >
> > a) know about this option and
> > b) set it
>
> Thus, my suggestion about putting it in the skeleton .mailrc in
> skel/ -- so that people can turn it off, but so that people get
> it when their accounts get created.
What about 'root'? OK, in a default /root/.mailrc? Why is that
any better than doing it in /etc/mail.rc?
Besides, what software installs the skel/ stuff? It's not installed
if you create accounts the traditional way (vipw + mkdir and
associated chown/chgrp).
- H=E5vard
From: "Perry E. Metzger" <perry@piermont.com>
To: Havard.Eidnes@runit.sintef.no
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/6965: /etc/mail.rc should most probably set 'crt'
Date: 08 Feb 1999 13:05:21 -0500
Havard.Eidnes@runit.sintef.no writes:
> What about 'root'? OK, in a default /root/.mailrc? Why is that
> any better than doing it in /etc/mail.rc?
>
> Besides, what software installs the skel/ stuff? It's not installed
> if you create accounts the traditional way (vipw + mkdir and
> associated chown/chgrp).
Well, the skel/ files are there for you to use in building new
accounts, but seriously -- this isn't important enough to me. If you
want to commit "set crt" to /etc/mail.rc, and you feel this strongly,
I won't oppose it. I just feel it isn't the right spot, but it isn't
*that* important. The world will survive either way! :)
Perry
State-Changed-From-To: open->closed
State-Changed-By: he
State-Changed-When: Mon Feb 8 12:49:10 PST 1999
State-Changed-Why:
Fix committed as proposed. 'crt' option now on.
From: Scott Reynolds <scottr@og.org>
To: Havard.Eidnes@runit.sintef.no
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/6965: /etc/mail.rc should most probably set 'crt'
Date: Mon, 8 Feb 1999 18:05:45 -0600 (CST)
On Mon, 8 Feb 1999 Havard.Eidnes@runit.sintef.no wrote:
> >Fix:
> Make 'crt' be among the default variables set in /etc/mail.rc.
> People posessing hardcopy terminals can go and remove this
> option themselves, since they're few and far between these
> days.
This is a policy decision; I'm not even sure I agree with the fact that we
have an /etc/mail.rc in the first place, except to get the software to
behave in the traditionally expected manner. People who actually use
mail(1) to read their mail these days are few and far between, themselves,
besides. The relevant questions seem to be: is there an actual bug here,
or is this a policy/user preference? If the latter, is it appropriate to
dictate to the user community that the default behavior be changed?
--scott
From: Havard.Eidnes@runit.sintef.no
To: scottr@og.org
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/6965: /etc/mail.rc should most probably set 'crt'
Date: Tue, 09 Feb 1999 11:21:40 +0100
> > >Fix:
> > Make 'crt' be among the default variables set in /etc/mail.rc.
> > People posessing hardcopy terminals can go and remove this
> > option themselves, since they're few and far between these
> > days.
>
> This is a policy decision; I'm not even sure I agree with the fact
> that we have an /etc/mail.rc in the first place, except to get the
> software to behave in the traditionally expected manner. People who
> actually use mail(1) to read their mail these days are few and far
> between, themselves, besides. The relevant questions seem to be: is
> there an actual bug here, or is this a policy/user preference? If
> the latter, is it appropriate to dictate to the user community that
> the default behavior be changed?
I can agree that this is a policy decision. I would be willing to
back it out if there is strong and well-argued opposition to this
change.
I will however argue that seen from my perspective the current default
behaviour is an inappropriate default in the vast majority of cases.
The current default will tend to put off new and inexperienced system
administrators (see the scenaio below). I take it as granted that we
actually do want to make things as smooth as possible for new admins.
This setting may be contrary to tradition, but face it, most console
terminals are no longer hardcopy terminals. The world has moved on,
and I think this is the time to break with this particular part of
tradition.
The only mail reader we distribute is `mail', and as such, I think we
should also supply a configuration which results in what could be
argued is reasonable and appropriate behaviour in the vast majority of
cases.
Consider the following scenario:
Once a NetBSD system is installed, it will run /etc/daily (and
/etc/weekly), and those jobs will the first time around generate huge
mail messages which by default are sent to `root'. When the user
subsequently logs in on the console as `root' and sees `You have new
mail', what other program than `mail' would be natural to use in the
default installation? And once he reads those mail messages using
`mail', most of the contents will by default scroll (quickly) off the
top of the screen.
I would not be surprised if the user reaction would be "That's a
stupid mail reading program", or at least "That's a stupidly
configured mail reading program", while the suggested tweak can remove
that initial reaction. Note that few first-time administrators will
know about the `crt' option, so few if any will be able to make the
second conclusion above.
Thus, in my humble opinion, since 99% or more of admin users run
their consoles on a non-hardcopy terminal, I would argue that
setting the `crt' option to be on by default (through /etc/mail.rc)
is a reasonable default setting, so that new users are not put off
by what could be argued is an inappropriate default in the typical
installations.
Anyway, that is my main reasoning behind reporting this change
request.
Regards,
- H=E5vard
From: Scott Reynolds <scottr@og.org>
To: Havard.Eidnes@runit.sintef.no
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/6965: /etc/mail.rc should most probably set 'crt'
Date: Tue, 9 Feb 1999 21:46:39 -0600 (CST)
H=E5vard,
While I don't agree that we necessarily need strong arguments to leave
things like this alone, you have more than adequately addressed the issue.=
=20
One other thing that I didn't bring up as a possible concern is the effect
that this will have when mail(1) is run from an interactive script and
input redirection. Fortunately, this happens to not be a problem (because
the "interactive" variable will be set only if isatty(0) succeeds).
Thanks for the thorough explanation.
--scott
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.