#!/bin/csh -f
# mailerrsless
# -----------------------------------------------------------------------------
# Shell script to run mailerrs and pipe the output to less for pagination
# and searching.
# -----------------------------------------------------------------------------
# Usage:  Run with -h or --help option to see usage.
# Assumptions:
# Effects:
# - Reads the mail log, prompting for sudo password and shows report in less
# Notes:
# - For some reason the user can't just invoke mailerrs on a remote server
#   via ssh and pipe the output locally to less without losing the CR's in
#   the CR-LF pairs.  This pipes to less on the server so mailerrsless can 
#   be invoked via ssh.
# Implementation Notes:
# Portability Issues:
# Revision History:
#   $Log$
# ------------------------------------------------------------------------------
mailerrs $*:q | less