###
###	NetATalk unix appletalk daemon messages
### $Id: netatalk.txt,v 1.1 2002/03/09 18:26:23 emf Exp $
###

# afpd login
'^.{15,} (.*) afpd\[(.*)\]: session from (.*) on (.*)' - - - 0 
	open "$2 afpd\\[$3\\]:" - 2500 10800 1800
	ignore

# followed by things like
'^.{15,} (.*) afpd\[.* login (.*) \(uid ([0-9]*), gid ([0-9]*)\)' - - - 0 ignore
'^.{15,} (.*) afpd\[.* afp_getsrvrparms: stat .* No such file or directory' - - - 0 ignore

# If anything ELSE happens, we need to bitch loudly.
'^.{15,} (.*) afpd\[(.*)\]:' - - - 0
	rule before
	'^.{15,} (.*) afpd\[(.*)\]: done' - '.*' - 1800
		report "/usr/local/bin/surfmailer -r root -S \"appletalk behaving weird on $2\"" "$2 afpd\\[$3\\]:"

# then, sometime later, we log out and ...
'^.{15,} (.*) afpd\[(.*)\]: done' - - - 0 
	delete "$2 afpd\\[$3\\]:"

# the parent notices the child is gone
'^.{15,} (.*) afpd\[(.*)\]: asp_chld .* done' - - - 0 ignore

