NetBSD Problem Report #3083

Received: (qmail-queue invoked from smtpd); 6 Jan 1997 10:32:18 -0000
Message-Id: <199701061028.LAA24282@polder.ubc.kun.nl>
Date: Mon, 6 Jan 1997 11:28:52 +0100 (MET)
From: Olaf Seibert <rhialto@polder.ubc.kun.nl>
Reply-To: rhialto@polder.ubc.kun.nl
To: gnats-bugs@gnats.netbsd.org, rhialto@polder.ubc.kun.nl
Subject: /usr/bin/mail counts lines improperly
X-Send-Pr-Version: 3.95

>Number:         3083
>Category:       bin
>Synopsis:       #lines of mails with >32767 lines are incorrectly counted
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 06 02:35:02 +0000 1997
>Closed-Date:    Wed Jan 08 23:12:19 +0000 1997
>Last-Modified:  Thu Jan 09 07:18:25 +0000 1997
>Originator:     Olaf Seibert
>Release:        1.2
>Organization:
___ Olaf 'Rhialto' Seibert      D787B44DFC896063 4CBB95A5BD1DAA96 
\X/ Don't dream it, Be it               rhialto@polder.ubc.kun.nl
>Environment:
System: NetBSD polder.ubc.kun.nl 1.2 NetBSD 1.2 (POLDER) #1: Thu Dec 12 21:53:41 MET 1996 rhialto@polder.ubc.kun.nl:/home/src/sys/arch/i386/compile/POLDER i386


>Description:

If you get a mail of more than 32767 lines, /usr/bin/mail improperly
displays its number of lines. This is mostly annoying since it will
then not use the pager to display the mail, even though it is excessively
long.

& h
>  71 root                  Sat Jan  4 05:41 -29912/1353376
&

wc toolongmail gives
   35625   43529 1353386 toolongmail

>How-To-Repeat:

Send yourself a very long mail, and use the h command in /usr/bin/mail.

>Fix:

It looks like somebody mistakenly decided to use a short to
count the number of lines in a mail. Should be easy to fix.
If I had source on-line, I'd include a patch.

>Release-Note:
>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: mikel
State-Changed-When: Wed Jan  8 23:12:19 1997
State-Changed-Why:
fixed in -current; by christos on 960608.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

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