#!/bin/csh -f

# Make an X-Bcc list of email addresses from the aliases (and other
# junk) on standard input or in the named files.

echo -n 'X-Bcc: '

cat $* | sed -n 's+^alias \([^ ]*\) .*+\1+p' | tr '\012' ','
