From root@techpc04.okladot.state.ok.us  Thu Mar  4 08:35:21 2004
Return-Path: <root@techpc04.okladot.state.ok.us>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0F7F016A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  4 Mar 2004 08:35:21 -0800 (PST)
Received: from odot.okladot.state.ok.us (odot.okladot.state.ok.us [192.149.244.9])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8288443D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  4 Mar 2004 08:35:20 -0800 (PST)
	(envelope-from root@techpc04.okladot.state.ok.us)
Received: from notes9c.okladot.state.ok.us (notes9a.okladot.state.ok.us [10.36.36.31])
	by odot.okladot.state.ok.us (AIX4.3/8.9.3/8.9.2) with ESMTP id KAA66406;
	Thu, 4 Mar 2004 10:35:19 -0600
Received: from techpc04.okladot.state.ok.us ([199.27.9.37])
          by notes9c.okladot.state.ok.us (Lotus Domino Release 5.0.12)
          with ESMTP id 2004030410354858:106900 ;
          Thu, 4 Mar 2004 10:35:48 -0600 
Received: by techpc04.okladot.state.ok.us (Postfix, from userid 0)
	id AB4715C42; Thu,  4 Mar 2004 10:35:40 -0600 (CST)
Message-Id: <20040304163540.AB4715C42@techpc04.okladot.state.ok.us>
Date: Thu, 4 Mar 2004 10:35:40 -0600 (CST)
From: "Paul Seniura" <pdseniura@techie.com>
Reply-To: "Paul Seniura" <pdseniura@techie.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: "Paul Seniura" <pdseniura@techie.com>
Subject: recent changes to usr.bin/mail are causing odd behaviours
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         63769
>Category:       bin
>Synopsis:       recent changes to usr.bin/mail are causing odd behaviours
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    mikeh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 04 08:40:26 PST 2004
>Closed-Date:    Tue Mar 09 08:49:19 PST 2004
>Last-Modified:  Tue Mar 09 08:49:19 PST 2004
>Originator:     "Paul Seniura" <pdseniura@techie.com>
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
State of Okla. D.O.T.
>Environment:
System: FreeBSD techpc04.okladot.state.ok.us 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Mar 3 00:53:27 CST 2004 root@techpc04.okladot.state.ok.us:/usr/obj/src/sys/IBM300SY_4BSD_O2 i386

>Description:

The commits done on 29 February 2004 affecting the base mail program are now causing odd behaviours.

=> mikeh       2004/02/29 12:44:44 PST
=> 
=>   FreeBSD src repository
=> 
=>   Modified files:
=>     usr.bin/mail         extern.h lex.c mail.1 main.c names.c 
=>                          send.c 
=>   Log:
=>   Add the -e (mail presence test), -H (header summary mode), and -F
=>   (message save as first recipient) options for standards
=>   conformance.
=>   
=>   Submitted by:   Wartan Hachaturow <wart@tepkom.ru> (with some changes)
=>   PR:             standards/61934
=>   
=>   Revision  Changes    Path
=>   1.9       +1 -0      src/usr.bin/mail/extern.h
=>   1.15      +14 -5     src/usr.bin/mail/lex.c
=>   1.43      +26 -2     src/usr.bin/mail/mail.1
=>   1.14      +43 -5     src/usr.bin/mail/main.c
=>   1.9       +73 -0     src/usr.bin/mail/names.c
=>   1.14      +26 -2     src/usr.bin/mail/send.c

After entering 'mail', just about any command is now producing a line showing:
Illegal use of "message list"
as a result.

Quitting the program with 'q' will show:
Thou hast new mail.
even if you have none.  'x' does not do this.

>How-To-Repeat:

I'm logged-in as 'root' since this is solely a development system for my work.

I have NO_SENDMAIL=true in /etc/make.conf because I am using Postfix instead.

I do not have NO_MAILWRAPPER set, tho, so those will still be built.

I have the other SENDMAIL_* knobs commented-out, too.

Build & install world with above commits in place.

Here is a sample session:

# mail
Mail version 8.1 6/6/93.  Type ? for help.
"": 0 messages
& h
Illegal use of "message list"
& n
Illegal use of "message list"
& t *
Illegal use of "message list"
& r *
Illegal use of "message list"
& q
Thou hast new mail.
#

So far, it seems not to be actually causing any 'real' problems, but then this development system is not used for mail much at all.

The nightly cron msgs did show up okay and I was able to 'd *' them, altho doing so did produce another bogus line saying the msgs were being copied somewhere (wasn't expecting it, so I missed jotting it down) and the 'q' did seem to remove them properly despite its bogus response as shown above.

>Fix:

Maybe perhaps back-out the above commits until they are working properly.

I am rather reluctant to mess around with 'world' myself.  ;)

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->mikeh 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sat Mar 6 00:47:23 PST 2004 
Responsible-Changed-Why:  
Assign to responsible committer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63769 
State-Changed-From-To: open->feedback 
State-Changed-By: mikeh 
State-Changed-When: Sat Mar 6 05:29:09 PST 2004 
State-Changed-Why:  
Can you see if rev 1.16 of lex.c fixes the problem? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63769 

From: "Paul Seniura" <pdseniura@techie.com>
To: freebsd-gnats-submit@FreeBSD.org, mikeh@FreeBSD.org
Cc: "Paul Seniura" <pdseniura@techie.com>
Subject: Re: bin/63769: recent changes to usr.bin/mail are causing odd behaviours
Date: Sat,  6 Mar 2004 13:05:47 -0600 (CST)

 > Can you see if rev 1.16 of lex.c fixes the problem?
 
 Thank you for helping with this.
 I'll need to do that on Monday (I don't have any li'l-endians at
 home here ;) and since I'm forced to follow -Current via CTM
 (political firewall issues there), the rev will come in
 automatically, of course, and I'll run new builds at that time
 and report back soon as I can.
 Thank you again,
   --  Paul Seniura.
 

From: "Paul Seniura" <pdseniura@techie.com>
To: Mike Heffner <mikeh@FreeBSD.org>,
	freebsd-gnats-submit@FreeBSD.org
Cc: "Paul Seniura" <pdseniura@techie.com>
Subject: Re: bin/63769: recent changes to usr.bin/mail are causing odd behaviours
Date: Tue, 9 Mar 2004 09:09:43 -0600 (CST)

 > Can you see if rev 1.16 of lex.c fixes the problem?
 
 I believe the problems I mentioned have vanished with 1.16 of lex.c.
 It took much longer to buildworld, and they're still adding on to it. ;)
 Thank you very much for taking time for this.
   --  Paul Seniura.
 
 
State-Changed-From-To: feedback->closed 
State-Changed-By: mikeh 
State-Changed-When: Tue Mar 9 08:48:41 PST 2004 
State-Changed-Why:  
Submitter reports that r1.16 of lex.c appears to fix problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63769 
>Unformatted:
