shithub: rc

ref: c1a707427fbbb5129e467516fc671e976ee3e398
dir: /pipefrom/

View raw version
#!/bin/rc
# Sender get's CC'd on every send.
# 2015-11-02T17:39:53-0500
rfork en
ramfs
TMP=/tmp/myupassend.$pid

# collect upas/send options
options=()
while (! ~ $#* 0 && ~ $1 -*) {
	options=($options $1);
	shift
}

# collect addresses
dests=()
while (! ~ $#* 0) {
	dests=($dests $1);
	shift
}

# send mail
upas/send $options $dests $upasname