#!/bin/sh # # /usr/local/sbin/localusermailaddr # Copyright 2002 - 2006 Jonas Smedegaard # # $Id: user-mailaddr,v 1.4 2006-05-05 10:25:41 jonas Exp $ # # List mail addresses attached to an account # for uid in $@; do echo "$uid@`cat /etc/mailname`" # grep "[[:space:]]$uid\$" | sed -e 's/.*://' -e 's/[[:space:]].*//' | grep -v '^$' | sort find /etc/postfix -regex '.*/virtual[^.]*' -exec grep "[[:space:]]$uid\$" '{}' ';' | sed -e 's/.*://' -e 's/[[:space:]].*//' | grep -v '^$' | sort for otheruid in `grep "^[[:alnum:]-]\+:[[:space:]]\+$uid" /etc/aliases | sed 's/:.*//'`; do echo "$otheruid@`cat /etc/mailname`" find /etc/postfix -regex '.*/virtual[^.]*' -exec grep "[[:space:]]$otheruid\$" '{}' ';' | sed -e 's/.*://' -e 's/[[:space:]].*//' | grep -v '^$' | sort done done index : notmuch
Unnamed repository; edit this file 'description' to name the repository.Jonas Smedegaard
summaryrefslogtreecommitdiff
path: root/tags/02/f1/20150125220630.D41EA1C05D@jawa.homebase.dk/hb
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
committerJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
commitfd54908da2b05c526dd3bee9b6dcd093214a220d (patch)
treec69c845069c99d1d01044f6fafda7c08433329c6 /tags/02/f1/20150125220630.D41EA1C05D@jawa.homebase.dk/hb
parentba46132213560cf3335d53560d519c0ec0190da2 (diff)
Diffstat (limited to 'tags/02/f1/20150125220630.D41EA1C05D@jawa.homebase.dk/hb')