summaryrefslogtreecommitdiff
path: root/deluser.local
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2006-01-12 23:38:45 +0000
committerJonas Smedegaard <dr@jones.dk>2006-01-12 23:38:45 +0000
commitd939753b6fe06e0e66042fb71e77bba8bfe07976 (patch)
treeb5a7e7320ee73d5883f9ace5a6a1b9126f213a93 /deluser.local
parent3cd560bff24702babd27f4a208a6d07dae2478c6 (diff)
Limit to dealing with mailinglists for same domain.
Diffstat (limited to 'deluser.local')
-rwxr-xr-xdeluser.local6
1 files changed, 3 insertions, 3 deletions
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 <dr@jones.dk>
#
-# $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