FROM

Section: Misc. Reference Manual Pages (1L)
Updated: local
Index Return to Main Contents
 

NAME

from - list sender and subject of mail  

SYNTAX

from [-f] [file] [-d] [-w] [-s [sender]] [-u user]  

DESCRIPTION

From lists an abbreviated name for the sender of each letter in the specified mail file file (which may be preceded or prepended on the command line by -f) along with the subject of the letter so that both sets of information can fit into 80 columns of standard output.  

Options

With no options, from lists the mail in the user's system mailbox.
-f
If file is not specified, then mail in the file mbox in the user's home directory is listed (see ENVIRONMENT section for further details). Otherwise, mail in the mailbox file is listed.
-h
Print the from syntax.
-d
The complete return path and the date received are displayed. (This duplicates /usr/ucb/from.)
-w
The -w option is similar to that for ps on BSD systems. Selecting -w displays each entry in long form (in this case, a minimalist sender's address and the full subject); whereas, -ww displays each entry in unabridged form (i.e., the full subject and the complete return path for the sender are listed).
-s sender
Only mail from sender is listed. Sender defaults to $LOGNAME on System V and to $USER on BSD systems.
-u user
Mail in user's system mailbox is listed.
 

ENVIRONMENT

From uses the following environment variables:
HOME
The user's home (default login) directory.
USER/LOGNAME
The user's user (login) name.

If the environment variable MAILRC is set, from will check the mail startup file specified by $MAILRC instead of $HOME/.mailrc. If the environment variable MBOX is set, from will recognize the default mailbox specified by $MBOX rather than that specified in the mail startup file or $HOME/mbox.  

SEE ALSO

BSD -       Mail(1)

System V - mailx(1)
 

AUTHOR

Kevin Sweet


 

Index

NAME
SYNTAX
DESCRIPTION
Options
ENVIRONMENT
SEE ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 06:21:09 GMT, December 12, 2024