#!/bin/sh
# name - email
NAMES=TESTLIST.txt
# ANNOUNCE: announce text
ANNOUNCE=ANNOUNCE.txt

# check that there's not much cruft queued already
#mailq

export IFS="-"
while read name email; do
	# WARNING: will break with email1,email2,...!
	email="<`echo $email | tr -d ' '`>"
	mutt \
		-e "my_hdr From: conf2007@" \
		-e "my_hdr Reply-To: conf2007@" \
		-s 'IA: OSDN Conference (Kiev, Oct 26-27 2007)' \
		$email \
		< $ANNOUNCE
	sleep 1
done < $NAMES
