#!/bin/sh
#
# Example script for ACUA v3.01+
# This script is executed when the NOUNSUB flag is set and the user would
# have normally been unsubscribed by acua_updated.
# Robert Davidson, Feb 15, 2000.

/usr/bin/acua modrec "$1" expire += 7	# Line 1
/usr/bin/acua modrec "$1" -NOUNSUB	# Line 2
/usr/bin/acua lock "$1"			# Line 3

# WARNING!
#		This script MUST extend the user account by at least 1 day
#		to prevent acua_updated getting into an infinate loop running
#		this script.  I'm working on a fix for this already.
#
# Information:
#
#	Line 1: Extend the account for 7 days.
#
#	Line 2: Take away the NOUNSUB flag from the user so that next time
#		when the account is due for expiration (in 7 days) it will
#		be unsubscribed with a final destination of deletion.
#
#	Line 3: Lock the user account so they don't get some free access.
