From d939753b6fe06e0e66042fb71e77bba8bfe07976 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 12 Jan 2006 23:38:45 +0000 Subject: Limit to dealing with mailinglists for same domain. --- deluser.local | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'deluser.local') diff --git a/deluser.local b/deluser.local index 5f7478b..9f5ac3c 100755 --- a/deluser.local +++ b/deluser.local @@ -3,7 +3,7 @@ # /usr/local/sbin/deluser.local # Copyright 2001-2002 Jonas Smedegaard # -# $Id: deluser.local,v 1.19 2006-01-12 17:22:09 jonas Exp $ +# $Id: deluser.local,v 1.20 2006-01-12 23:38:45 jonas Exp $ # # Common deluser additions for Spiff and Xenux networks # @@ -18,7 +18,7 @@ OLDHOMEDIR=$4 fullname() { getent passwd $NEWUSERNAME | awk -F: '{print $5}' | awk -F, '{print $1}'; } maildomain() { if [ -r /etc/mailname ]; then head -n 1 /etc/mailname; fi; } -listlists() { if [ -x /usr/sbin/list_lists ]; then /usr/sbin/list_lists -ab; fi; } +listlists() { if [ -x /usr/sbin/list_lists ]; then /usr/sbin/list_lists -ab -V "$1"; fi; } delfromlist() { /bin/echo "$1" | /usr/sbin/remove_members -f - "$2"; } . /etc/adduser.conf @@ -45,7 +45,7 @@ fi maildomain="`maildomain`" if [ -n "$maildomain" ]; then - lists="`listlists`" + lists="`listlists "$maildomain"`" if [ -n "$lists" ]; then echo "Unsubscribing $OLDUSERNAME@$maildomain from mailinglists..." fi -- cgit v1.2.3