Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mailfrom(1) [hpux man page]

mailfrom(1)						      General Commands Manual						       mailfrom(1)

NAME
mailfrom - summarize mail folders by subject and sender SYNOPSIS
status] [folder|username]... DESCRIPTION
The command reads one or more mail folders and outputs one line per message in the form: from [subject] where from is the name of the person the message is from, and subject is the subject of the message, if present. If determines that the message is from you, the from portion will read where user is the user the message was sent to. This happens when you receive a copy of a letter you sent. The default folder is your incoming mailbox, See the Operands subsection below. Options recognizes the following options: Print a brief help message summarizing the options. Number the messages using the same numbering scheme used by Very quiet mode. Only error messages are produced. This option is useful in shell scripts, where only the success or failure of the program is important, and output is not desired. Quiet mode. Output only a one-line summary for each mailbox or folder. Add a summary of the number of messages by message status in each mailbox or folder. To get the summary only, use this with the option. The summary has the form: If an item count, n, r, or u is zero, the line is omitted. Only display headers from messages with the given status. status can be one of or and are equivalent. The option can be repeated to print header information from more than one category, for example, only new and unread messages. The values can be abbreviated to their first letters. The default is all messages. Tidy mode. If the from field is long enough to displace the subject field from its normal start column, move the subject down onto the next line. Verbose mode. Print a descriptive header before listing the contents of each mailbox or folder. Operands recognizes the following optional operands: folder|username A file name or the name of a mail user on your system. You can use the format to specify a folder in your mail directory, defined by the string variable in your configuration file. searches for the value as a file name relative to your current directory. Then, if the file name is not an absolute path, it searches for the value relative to the incoming mailbox directory, The first file found is selected. You must have read access to the file. RETURN VALUE
returns the following values: Messages matching status are present. No messages matching status are present, but there are some messages. There are no messages at all. An error occurred. If multiple mailboxes or folders are specified, the exit status only applies to the last one examined. This can be used in scripts to determine what kind of mail a user has. EXAMPLES
Display header information from all the messages in your mailbox. Display header information from all new messages in your mailbox. Assuming you have the proper file permissions to read mail, print out header information from all new and unread messages in incoming mail- box. Print only a summary of how many new, unread, and read messages are in your incoming mailbox. AUTHOR
was developed by HP. FILES
Your configuration file. Directory of incoming mailboxes. SEE ALSO
elm(1), mail(1), mailx(1), readmail(1). mailfrom(1)

Check Out this Related Man Page

newmail(1)						      General Commands Manual							newmail(1)

NAME
newmail - notify users of new mail in mailboxes SYNOPSIS
interval] [file-spec]... DESCRIPTION
The utility monitors your incoming mailbox or specified mail folders. The basic operation is that the program checks the folders each interval seconds (default 60) and lists any new mail that has arrived in any of the mailboxes, indicating the sender's name, and the subject of the message. Without any options, runs in the background at a default interval of 60 seconds to monitor the user's incoming mailbox. So that they are suitable for display on an already active screen, messages are prefixed with a pair of pointer characters as follows: If there is no subject, the message is displayed. If there is more than one folder, output lines are prefixed by the folder-name or the prefix string specified by file-spec. runs until you log out or explicitly kill it. It can internally reset itself if the mailbox shrinks in size and then grows again. Options recognizes the following options: Set the time interval between mailbox checks to the value specified, in seconds. The default is 60. interval must be less than 2^32 seconds. If it is set to less than 10 seconds, warns that such short intervals are not recommended. Run the program within the current window in the foreground with a more succinct output format. The output formats become: Operands recognizes the following operand: file-spec Specifies the name of a folder and an optional prefix string, in the form: Metacharacters such as and indicate the folder directory. The default is the value of the environment variable or EXAMPLES
Check incoming mailbox every 60 seconds: Check incoming mailboxes of and every 15 seconds for new messages. Monitor the incoming mailbox of user and the folder in your mail directory called Prefix all new messages in the incoming mailbox of with the string and the new messages in the folder with Also, monitor folder AUTHOR
was developed by HP. newmail(1)
Man Page