fromto -- sendmail logfile viewer
SYNOPSIS
fromto [-f] [-q] [-#] [-from string] [-to string]
[-sleep time] [-show items] [+show items]
[-ignore items] [logfiles...]
DESCRIPTION
Fromto prints the sendmail logfile information in human
readable format. Logfiles are usually placed in the
``/usr/spool/mqueue'' directory.
If files are specified in the command line, fromto reads
data from those files. Otherwise the default files are
used.
When SIGQUIT is sent, fromto prints a list of currently
deferred messages. This is convenient when running with
the -f option.
Default items to be displayed can be changed by setting
the environment variable `FROMTO'.
You need the Perl 3.0 programming language to run this
command.
Options:
-f Works like ``tail -f''. Continue to read data file
after encountering eof.
-q Start up quietly. Fromto displays no information
when reading existing files. It begins to display
after encountering the first eof. This option
doesn't make sense when used without -f option.
-# Any digit can be used here. This number means how
many files are to be read. Usually the syslog file
is renamed by cron every night. If this number is 1
(default), it reads only from the file named syslog
in the logging directory. If 2 is specified, it
reads from syslog.0 and syslog.
-from string
Display information only when from field matches
the string. Conditional options, -from and -to are
evaluated in logical OR manner by default.
-to string
Display information only when to field matches the
string.
between -from and -to is easy to read. For example
next command line will only print messages from foo
to bar.
fromto -from foo -a -to bar
-sleep time
Specify the interval in seconds between reads when
running with the -f option. Default is 5 seconds.
-show items
Specify what kind of information is to be dis-
played. Items is a string which contains alpha-
betic characters which represent a kind of data in
the following manner. Default is ``SOUE''.
S Mail is sent. From and to fields are connected
by arrow (->).
D Mail is deferred or queued. From and to fields
are connected by two asterisks (**).
I ID number
M Message ID
E Error information
O Status other than Sent or Deferred. Fields are
separated by two question characters (??) and
followed by status string.
L Sendmail locked
U Unrecognized message
d Delayed time
A Show all items
+show items
Add items to items string.
-ignore items
Delete items from items string.
-r Report deferred mail list before exiting.
SEE ALSO
sendmail(8), perl(1)
AUTHOR
Kazumasa Utashiro <utashiro@iij.ad.jp>
Internet Initiative Japan Inc.
FILES
/usr/spool/mqueue/syslog* default logfile
BUGS
Because this program doesn't release memory, the process
The syslog file format can vary from machine to machine.
If this program doesn't interpret your syslog file cor-
rectly, please try to fix the program, or let me know.
Man(1) output converted with
man2html