Subject: bin/782: Mail tilde commands (~x missing)
To: None <gnats-admin@NetBSD.ORG>
From: Simon J. Gerraty <sjg@zen.void.oz.au>
List: netbsd-bugs
Date: 02/03/1995 23:05:06
>Number:         782
>Category:       bin
>Synopsis:       ~? does not tell user of ~q and there is no ~x
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb  3 23:05:04 1995
>Originator:     Simon J. Gerraty
>Organization:
Zen Programming...
>Release:        1.0
>Environment:
	
System: NetBSD zen.void.oz.au 1.0 NetBSD 1.0 (ZEN) #6: Tue Dec 13 09:55:20 EST 1994 root@zen.void.oz.au:/usr/src/sys/arch/i386/compile/ZEN i386


>Description:

One tells new users to use ~? to check what commands are available while
writing mail.  However, the list of ~ commands does not mention any 
command to abort the message.  Also, mailx on System V uses ~x for
this purpose.

The patch below, makes ~x equivalent to ~q and mentiones them in the help
screen shown by ~?

>How-To-Repeat:
>Fix:

*** usr.bin/mail/collect.c.~1~	Wed Jun 29 20:35:41 1994
--- usr.bin/mail/collect.c	Sat Feb  4 10:23:46 1995
***************
*** 212,217 ****
--- 212,218 ----
  			 */
  			goto out;
  		case 'q':
+ 		case 'x':			/* like mailx */
  			/*
  			 * Force a quit of sending mail.
  			 * Act like an interrupt happened.
*** usr.bin/mail/misc/mail.tildehelp.~1~	Fri Dec 17 18:14:00 1993
--- usr.bin/mail/misc/mail.tildehelp	Sat Feb  4 10:34:29 1995
***************
*** 4,10 ****
  ~b users	Add users to "blind" cc list
  ~c users	Add users to cc list
  ~d		Read in dead.letter
! ~e		Edit the message buffer
  ~f messages	Read in messages
  ~F messages	Same as ~f, but keep all header lines
  ~h		Prompt for to list, subject and cc list
--- 4,10 ----
  ~b users	Add users to "blind" cc list
  ~c users	Add users to cc list
  ~d		Read in dead.letter
! ~e / ~v		Edit message buffer using EDITOR or VISUAL
  ~f messages	Read in messages
  ~F messages	Same as ~f, but keep all header lines
  ~h		Prompt for to list, subject and cc list
***************
*** 14,21 ****
  ~M messages	Same as ~m, but keep all header lines
  ~s subject	Set subject
  ~t users	Add users to to list
- ~v		Invoke display editor on message
  ~w file		Write message onto file.
  ~?		Print this message
  ~!command	Invoke the shell
  ~|command	Pipe the message through the command
--- 14,21 ----
  ~M messages	Same as ~m, but keep all header lines
  ~s subject	Set subject
  ~t users	Add users to to list
  ~w file		Write message onto file.
+ ~q / ~x		Quit (do not send message)
  ~?		Print this message
  ~!command	Invoke the shell
  ~|command	Pipe the message through the command
>Audit-Trail:
>Unformatted: