Index of /source/vmd/1.7.0/src/gnu/cmd/smail-3.1.28/contrib/smaillog/

NameLast modifiedSizeDescription
[DIR]Parent Directory08-Nov-11 15:57-
[TXT]Makefile21-Sep-92 01:421923
[TXT]README20-Sep-92 21:541902
[TXT]smaillog.828-Jun-92 00:581445
[TXT]smaillog.c20-Sep-92 21:5412K

# @(#)contrib/smaillog/README	1.2 9/20/92 %U

Smail3 log file parser.  Copyright 1990, Jeff Beadles.  All rights reserved.
		jeff@onion.pdx.com or  uunet!onion.pdx.com!jeff

Permission is granted to freely copy this program as long as it is not sold.

Source MUST be provided upon request, and this message must be kept on
all copies of the program.


What this program will do is simple.  It will take the smail3 logfile
information, and produce a fairly human-readable report.  For example, it
will take the smail3 logfile (/usr/spool/smail/log/logfile on my system)
that looks like:

	12/24/90 00:33:55: [m0innd5-000NXgC] received
	|	     from: root
	|	  program: sendmail
	|	     size: 1263 bytes
	12/24/90 00:33:56: [m0innd5-000NXgC] delivered
	|	       to: jeff
	|	  orig-to: real-jeff
	|	 director: user
	|	transport: local
	12/24/90 01:24:26: [m0io4L3-000NUrC] received
	|	     from: jeff@onion
	|	     host: onion
	|	 protocol: uucp
	|	  program: rmail
	|	  orig-id: <9208070242.AA0012r@onion.UUCP>
	|	     size: 2346 bytes
	12/24/90 01:24:29: [m0io4L3-000NUrC] delivered
	|	      via: uunet
	|	       to: bar.har.edu!foo
	|	  orig-to: 
	|	   router: paths
	|	transport: uux

on stdin, and,  on stdout display:

	Processing 4 lines.  (Used 459 bytes.)
	00:33:56: root => jeff
	01:24:29: jeff@onion => uunet!bar.har.edu!foo

I use this as a part of my nightly system checker.  Anyway, it's something
that I originally wrote for sendmail.  I've changed the field definitions
to work with smail3.  Yea, this could be in AWK, but I was in a 'C' kinda
of mood at the time.

This is provided as-is, and you can use it at your own risk.  There's no man
page currently.  One of these days, I might even write one for it.
Until then, "Use the source."  I call it like:

% smaillog < /usr/spool/smail/log/OLD/logfile.0 | mail jeff

Have fun,
	-Jeff
-- 
Jeff Beadles		jeff@onion.pdx.com