General-Purpose Mail Package
|Official GNU Software|
from— List Headers from a Mailbox
The information in this node may be obsolete or otherwise inaccurate. This message will disappear, once this node revised.
GNU mailutils provides two commands for listing messages in a mailbox.
The behavior of both programs is affected by the following configuration file statements:
|debug||See debug statement.|
|tls||See tls statement.|
|mailbox||See mailbox statement.|
|locking||See locking statement.|
frm utility outputs a header information of
the selected messages in a mailbox. By default,
user’s system mailbox and outputs the contents of
Subject headers for each message. If a folder is specified in
the command line, the program reads that folder rather than the default
The following command line options alter the behavior of the program:
Enable debugging output.
Display the header named by string instead of
Include the contents of
To header to the output. The output field
order is then:
Prefix each line with corresponding message number.
Be very quiet. Nothing is output except error messages. This is useful in shell scripts where only the return status of the program is important.
Print a message only if there are unread messages in the mailbox.
Print a summary line.
Only display headers from messages with the given status. Attr may be one of the following: ‘new’, ‘read’, ‘unread’. It is sufficient to specify only first letter of an attr. Multiple -s options are allowed.
Tidy mode. In this mode
frm tries to preserve the alignment of
the output fields. It also enables the use of BIDI algorithm for
displaying subject lines that contain text in right-to-left
orientation (such as Arabic or Hebrew).
from utility displays sender and subject of each message
in a mailbox. By default, it reads the user’s system mailbox. If the
program is given a single argument, it is interpreted as a name of the
user whose mailbox is to be read. Obviously, permissions are required
to access that user’s mailbox, so such invocations may be used only
The option -f (--file) instructs
from to read
the given mailbox.
The full list of options, supported by
Prints only a count of messages in the mailbox and exit.
Prints additional debugging output.
Prints only mail with ‘From:’ header containing the supplied string.
Examine mailbox from the given url.
This document was generated on August 5, 2021 using makeinfo.Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.