summaryrefslogtreecommitdiff
path: root/localusermailaddr
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-03-14 12:15:33 +0000
committerJonas Smedegaard <dr@jones.dk>2002-03-14 12:15:33 +0000
commitc6589189b417de33b4bfcce2d48772cbfa51ad3c (patch)
tree0eecd1b1e968f29ff3e58f36733e0591e110bdbd /localusermailaddr
parent38bb077b9cca1fca6874177cd2dcf33ecb9ddf1f (diff)
Revert the rename of user-mailaddr - to avoid the need of explaining to sudoers the difference between official debian stuff and local hacks (which is the reason for the prepending local*).
Diffstat (limited to 'localusermailaddr')
-rwxr-xr-xlocalusermailaddr14
1 files changed, 0 insertions, 14 deletions
diff --git a/localusermailaddr b/localusermailaddr
deleted file mode 100755
index 6595a38..0000000
--- a/localusermailaddr
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-#
-# /usr/local/sbin/localusermailaddr
-# Copyright 2002 Jonas Smedegaard <dr@jones.dk>
-#
-# $Id: localusermailaddr,v 1.1 2002-03-11 14:15:48 jonas Exp $
-#
-# List mail addresses attached to an account
-#
-
-for uid in $@; do
- grep "[[:space:]]$uid\$" `ls /etc/postfix/virtual* | egrep -v '\.(bak|db|dpkg-new|dpkg-old|old)$'` | sed -e 's/.*://' -e 's/[[:space:]].*//' | sort
- echo "$uid@`cat /etc/mailname`"
-done