xref: /netbsd-src/usr.bin/from/from.1 (revision ce0bb6e8d2e560ecacbe865a848624f94498063b)
1.\" Copyright (c) 1980, 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\"    must display the following acknowledgement:
14.\"	This product includes software developed by the University of
15.\"	California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\"    may be used to endorse or promote products derived from this software
18.\"    without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\"	from: @(#)from.1	6.7 (Berkeley) 7/26/91
33.\"	$Id: from.1,v 1.3 1994/01/11 02:23:18 jtc Exp $
34.\"
35.Dd July 26, 1991
36.Dt FROM 1
37.Os BSD 4
38.Sh NAME
39.Nm from
40.Nd print names of those who have sent mail
41.Sh SYNOPSIS
42.Nm from
43.Op Fl s Ar sender
44.Op Fl f Ar file
45.Op Ar user
46.Sh DESCRIPTION
47.Nm From
48prints
49out the mail header lines from the invoker's mailbox.
50.Pp
51Options:
52.Bl -tag -width Fl
53.It Fl f Ar file
54The supplied file
55is examined instead of the invoker's mailbox.
56If the
57.Fl f
58option is used, the
59.Ar user
60argument should not be used.
61.It Fl s Ar sender
62Only mail from addresses containing
63the
64supplied string are printed.
65.El
66.Pp
67If
68.Ar user
69is given, the
70.Ar user Ns 's
71mailbox, is examined instead of the invoker's own mailbox.
72(Privileges are required.)
73.Sh FILES
74.Bl -tag -width /var/mail/* -compact
75.It Pa /var/mail/*
76.El
77.Sh SEE ALSO
78.Xr biff 1 ,
79.Xr mail 1
80.Sh HISTORY
81The
82.Nm from
83command appeared in
84.Bx 3.0 .
85