#!/bin/sh # Usage: pkk-generate-mailadds > conf/mail-addresses # scp # % for r in `tail -5 /tmp/ksp-addrs`; do { echo To: $r; cat /tmp/ksp-msg } | sendmail -oi -t; done # % for r in `cat /tmp/ksp-addrs`; do { echo To: $r; cat /tmp/ksp-msg } | sendmail -oi -t; done . $HOME/.pkkrc test -r "$KSPFILE" ||( echo "ksp file $KSPFILE not found" && exit) grep uid $KSPFILE | grep @ | uniq -f 2 | sed -e 's/\(.*\)<\([^>]\+\)\(.*\)/\2/'