#!	/bin/csh -f
#
# Copyright 1993, 1994, 1995 by the Regents of the University of California.
# see the file "Copyright" in the distribution for conditions of use.
#
#
#	list user's mailing lists
#
set awkf = `mktemp -pmllist`;
#
cat << "EOT" > $awkf
{
	if( NR == 1 ) {
		user = $1;
	} else if( $3 == user ) {
		if( count++ == 0 ) printf("Mailing lists:\n");
		printf "\t%-20s Last modified %3s %2s %5s\n", $8, $5, $6, $7;
	}
}
END { if( count == 0 ) printf("You do not own any public mailing lists\n"); }
"EOT"
#
(echo $USER; ls -l /usr/lib/aliases.inc) | awk -f $awkf
/bin/rm $awkf
