This just got the thumbs up from our staff who need to keep an
eye on mail flow. Might be useful to some others on this list.
#!/bin/sh
tail -f /var/log/mail/mail.log | \
awk -F, ' \
/Message delivered./ { \
print \
substr($4,6)"\t" \
substr($3,7,length($3)-7)" \033[1;32m<-\033[0m " \
substr($2,7,length($2)-7) \
} \
/status: success/ { \
print \
substr($4,6)"\t" \
substr($2,7,length($2)-7)" \033[1;31m->\033[0m " \
substr($3,7,length($3)-7) \
}'
--markc
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users