[comp.unix.questions] more in mail/mailx???

valeyard@vaxb.acs.unt.edu (06/29/90)

How can I get mail/mailx to more a letter rather than just cat'ing the thing to
my screen?

Clay Luther                 valeyard@untvax.bitnet
Lonely C++ Programmer       valeyard@vaxb.acs.unt.edu

jik@athena.mit.edu (Jonathan I. Kamens) (06/29/90)

In article <28412.268ab7ae@vaxb.acs.unt.edu>, valeyard@vaxb.acs.unt.edu writes:
|> How can I get mail/mailx to more a letter rather than just cat'ing
the thing to
|> my screen?

  I seem to recall seeing this question being asked at least once before
since the beginning of the summer.  Perhaps it's time to add it to the
FAQ posting?

  From mail(1):

     The following options have string values:

     ...

     crt            The valued option crt is used as a threshold
                    to determine how long a message must be
                    before PAGER is used to read it.

IN other words, you set the crt option to a number, and any mail message
with more than that number of lines gets piped through

     PAGER          Pathname of the program to use in the more
                    command or when crt variable is set.  A
                    default paginator is used if this option is
                    not defined.

  Note that this is referring to the Berkeley mail program; I don't know
about SysV mail (although the one SysV-based system to which I have
access doesn't appear to mention any options of this sort in its man
page for mail) or about mailx (perhaps someone else can jump in and
answer about mailx :-).  Note also that /bin/mail on Berkeley systems
doesn't have these options; only /usr/ucb/mail does.

Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik@Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8495			      Home: 617-782-0710

jik@athena.mit.edu (Jonathan I. Kamens) (06/29/90)

In article <1990Jun29.134714.14451@athena.mit.edu>, I write:
|>   Note that this is referring to the Berkeley mail program; I don't know
|> about SysV mail (although the one SysV-based system to which I have
|> access doesn't appear to mention any options of this sort in its man
|> page for mail) or about mailx (perhaps someone else can jump in and
|> answer about mailx :-).  Note also that /bin/mail on Berkeley systems
|> doesn't have these options; only /usr/ucb/mail does.

  I should not have been so quick to admit what I don't know :-)

  I just realized that the one SysV-based to which I have access has a
man page for mailx, so I checked it (of course I realized this right
*after* I posted my original message :-).  Mailx has the same crt and
PAGER options as Berkeley mail.

Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik@Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8495			      Home: 617-782-0710