bsd-from
Display mail sender information from a mailbox
TLDR
Show who has sent mail to your mailbox
SYNOPSIS
bsd-from [-c] [-f file] [-s sender] [user]
DESCRIPTION
bsd-from (also known as from) prints the mail header lines from a mailbox, showing the names of people who have sent mail. By default, it examines the invoker's mailbox.
The command provides a quick way to see pending mail without opening a full mail client. It displays the "From" lines of messages, giving an overview of who has sent mail.
PARAMETERS
-c
Print only a count of messages and exit-f file
Examine the specified file instead of the default mailbox. Use - to read from standard input-s sender
Only print mail from addresses containing the specified stringuser
Examine the specified user's mailbox instead of the invoker's (requires appropriate privileges)
CAVEATS
When using the -f option, the user argument should not be specified. Examining other users' mailboxes requires elevated privileges.
The default mailbox location is determined by the MAIL environment variable, or /var/mail if not set.
HISTORY
The from command first appeared in BSD 3.0 in 1979 as part of the Berkeley Software Distribution mail utilities.
